mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
mqtt2.template: (and others) add attrTemplateVersion
git-svn-id: https://svn.fhem.de/fhem/trunk@22000 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
0c8e918ed7
commit
ec3e5131a4
@ -38,6 +38,7 @@ attr DEVICE timeout 10
|
||||
attr DEVICE verbose 2
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model clever_tanken_single_station
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#Station overview, one product, Forum: https://forum.fhem.de/index.php/topic,94640.msg873841.html#msg873841
|
||||
name:clever_tanken_multi_station
|
||||
@ -64,6 +65,7 @@ attr DEVICE readingMaxAge 10
|
||||
attr DEVICE readingMaxAgeReplacementMode delete
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model clever_tanken_multi_station
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#Contributed by subseven & yersinia, see https://forum.fhem.de/index.php/topic,107189.msg1017754.html#msg1017754
|
||||
name:fuel_oil_check
|
||||
@ -108,6 +110,7 @@ attr DEVICE stateFormat { my $price = 0.0;;\
|
||||
}
|
||||
attr DEVICE webCmd reread
|
||||
attr DEVICE model fuel_oil_check
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
#German weather warnings from DWD, Forum: https://forum.fhem.de/index.php/topic,45176.msg905879.html#msg905879
|
||||
@ -127,6 +130,7 @@ attr DEVICE room WHICHROOM
|
||||
attr DEVICE readingMaxAge 10
|
||||
attr DEVICE readingMaxAgeReplacementMode delete
|
||||
attr DEVICE model DWD_weather_warnings
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#German river water levels, Wiki: https://wiki.fhem.de/wiki/Flusspegel
|
||||
name:pegelonline
|
||||
@ -143,6 +147,7 @@ attr DEVICE stateFormat {sprintf("%.0f",ReadingsVal("DEVICE","value",0))}
|
||||
attr DEVICE timeout 5
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model pegelonline
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#Austrian weather, Forum: https://forum.fhem.de/index.php/topic,94110.msg868080.html#msg868080; enhanced by JoeALLb: https://forum.fhem.de/index.php/topic,97694.msg912164.html#msg912164
|
||||
name:ORF_weather
|
||||
@ -174,6 +179,7 @@ attr DEVICE reading01Regex (?s)Temperatur.*?.*?>.*?(?<temperature>[\d,]+)&thinsp
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE stateFormat W: wind, H: humidity%rH, T: temperature°C
|
||||
attr DEVICE model ORF_weather
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#Geschwindigkeitsüberwachung, Forum: https://forum.fhem.de/index.php/topic,90014.msg824805.html#msg824805
|
||||
name:blitzer
|
||||
@ -189,6 +195,7 @@ attr DEVICE getHeader2 Accept: */*
|
||||
attr DEVICE readingEncode utf8
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model blitzer
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
#homebridge-videodoorbell, Forum: https://forum.fhem.de/index.php/topic,94291.msg870289.html#msg870289
|
||||
@ -213,6 +220,7 @@ attr DEVICE set01Header06 Content-Type: application/x-www-form-urlencoded
|
||||
attr DEVICE set01NoArg 1
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model homebridge_videodoorbell
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# Pihole Statistics, Website: https://wolf-u.li/5987/einbindung-der-pihole-statistiken-in-fhem/
|
||||
name:pihole_statistics
|
||||
@ -227,6 +235,7 @@ attr DEVICE stateFormat DNS Anfragen: dns_queries_today<br>Geblockte Seiten: ads
|
||||
attr DEVICE userReadings ads_blocked_today_formatted {round(ReadingsNum($name,"ads_percentage_today",0),0)}
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model pihole_statistics
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# Pharmacy Emergency Service Germany, Forum: https://forum.fhem.de/index.php?topic=87234.0
|
||||
name:pharmacy_emergency_service_germany
|
||||
@ -272,6 +281,7 @@ attr DEVICE stateFormat Name, Telefon, Strasse in Plz Ort
|
||||
attr DEVICE timeout 60
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model pharmacy_emergency_service_germany
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#################################
|
||||
#HP Printers
|
||||
@ -300,6 +310,7 @@ attr DEVICE stateFormat Modell: Model SN: Serial_Number
|
||||
attr DEVICE userReadings Memory_Usage {100-(ReadingsNum("DEVICE","Available_Memory","")/2.56)}
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model hp_printer_config
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# Printer cartridge states
|
||||
name:hp_printer_cartridge_status
|
||||
@ -328,6 +339,7 @@ attr DEVICE reading08XPath-Strict //ccdyn:ConsumableInfo[5]/dd:ConsumableSelecti
|
||||
attr DEVICE stateFormat C: Cyan% M: Magenta% Y: Yellow% B: Black%
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model hp_printer_cartridge_status
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# Printer statistics
|
||||
name:hp_printer_statistics
|
||||
@ -378,6 +390,7 @@ attr DEVICE reading51XPath-Strict //pudyn:Consumable[dd:MarkerColor='Black']/dd:
|
||||
attr DEVICE stateFormat Total: Printer_Pages_Total Monochrome: Printer_Pages_Monochrome Color: Printer_Pages_Color
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model hp_printer_statistics
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# Printer status
|
||||
name:hp_printer_status
|
||||
@ -392,6 +405,7 @@ attr DEVICE reading01XPath-Strict //psdyn:LocString[@lang='de']/text()
|
||||
attr DEVICE stateFormat Status
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model hp_printer_status
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
#################################
|
||||
@ -416,6 +430,7 @@ attr DEVICE reading04Regex Ink_B.*?='([\d]+)'
|
||||
attr DEVICE stateFormat C: Cyan% M: Magenta% Y: Yellow% B: Black%
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model epson_printer_cartridge_status
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#################################
|
||||
#Brother Printers
|
||||
@ -444,6 +459,7 @@ attr DEVICE reading05Name Status
|
||||
attr DEVICE reading05RegOpt gm
|
||||
attr DEVICE reading05Regex <th>1<\/th><td>(.*?)<
|
||||
attr DEVICE model brother_printer_cartridge_status
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#################################
|
||||
#Brother Scanners
|
||||
@ -483,6 +499,7 @@ attr DEVICE reading12XPath-Strict //PaperJams/text()
|
||||
attr DEVICE stateFormat Pages: ScannedPagesTotal Modell: Model SN: Serial_Number
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model brother_scanner_ads_status
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#################################
|
||||
#RESOL Solaranlage, Forum: https://forum.fhem.de/index.php/topic,86678.0.html
|
||||
@ -509,6 +526,7 @@ attr DEVICE room WHICHROOM
|
||||
attr DEVICE stateFormat Dachtemperatur: Temperatur_Sensor1 Drehzahl Pumpe: Drehzahl_Pumpe Laufzeit Heute: Tageslaufzeit
|
||||
attr DEVICE timeout 5ercent="([\d\.]+)
|
||||
attr DEVICE model resol_solar
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#################################
|
||||
#Show updates for CUL_HM devices, Forum: https://forum.fhem.de/index.php/topic,78501.msg972144.html#msg972144
|
||||
@ -622,6 +640,7 @@ attr DEVICE userReadings newFwForDevices:MATCHED_READINGS.* {\
|
||||
}
|
||||
attr DEVICE webCmd reread
|
||||
attr DEVICE model homematic_fw_check_v2
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
#Contributed by yersinia, see https://forum.fhem.de/index.php/topic,97694.msg1045829.html#msg1045829
|
||||
@ -712,6 +731,7 @@ attr DEVICE userReadings updatableDevices {\
|
||||
}
|
||||
attr DEVICE webCmd reread
|
||||
attr DEVICE model aculfw_fw_check
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
#Contributed by OdfFHEM, see https://forum.fhem.de/index.php/topic,97694.msg992348.html#msg992348
|
||||
@ -800,6 +820,7 @@ attr DEVICE userReadings updatableDevices:MATCHED_READINGS.* {\
|
||||
attr DEVICE webCmd reread
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model tasmota_firmware_updates
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#Contributed by OdfFHEM, see https://forum.fhem.de/index.php/topic,97694.msg998835.html#msg998835
|
||||
name:zigbee2mqtt_daemon_updates
|
||||
@ -887,6 +908,7 @@ attr DEVICE userReadings updatableDevices:MATCHED_READINGS.* {\
|
||||
attr DEVICE webCmd reread
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model zigbee2mqtt_daemon_updates
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
|
||||
@ -963,6 +985,7 @@ attr DEVICE userReadings updatableDevices:MATCHED_READINGS.* {\
|
||||
attr DEVICE webCmd reread
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE model ESPEasy_firmware_updates
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#Contributed by yersinia, see
|
||||
name:dnscrypt-proxy_updates
|
||||
@ -980,4 +1003,5 @@ attr DEVICE myInstalledVersion 2.0.31
|
||||
attr DEVICE room WHICHROOM
|
||||
attr DEVICE enableControlSet 1
|
||||
attr DEVICE model dnscrypt-proxy_updates
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
@ -52,6 +52,7 @@ setreading DEVCID associatedWith DEVICE
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=DEVCID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
farewell:template has been applied successfully. Be carefull when extending the brigeRegexp!
|
||||
attr DEVCID model MQTT2_CLIENT_general_bridge
|
||||
setreading DEVCID attrTemplateVersion 20200522 or prior
|
||||
|
||||
###############
|
||||
#MQTT2 IO ignoreRegexp
|
||||
@ -124,6 +125,7 @@ attr DEVICE setList\
|
||||
attr DEVICE setStateList on off
|
||||
attr DEVICE comment To check for new updates of the deamon software, you might want to use a separate HTTPMOD device. See HTTPMOD template zigbee2mqtt_daemon_updates for further details.
|
||||
attr DEVICE model zigbee2mqtt_bridge
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
# Based on https://forum.fhem.de/index.php/topic,94060.msg872371.html#msg872371
|
||||
|
||||
#A pure router device, e.g. a CC2531 flashed with router firmware
|
||||
@ -145,6 +147,7 @@ attr DEVICE stateFormat availability
|
||||
attr DEVICE comment To get also information on device going offline, set "availability_timeout" to a reasonable value in configuration.yaml.
|
||||
farewell:template has been applied successfully. Please check configuration.yaml to get regular updates on availability.
|
||||
attr DEVICE model zigbee2mqtt_router_only_device
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# A dimmable light connected via zigbee2mqtt
|
||||
name:zigbee2mqtt_light_dimmer
|
||||
@ -166,6 +169,7 @@ attr DEVICE setList \
|
||||
attr DEVICE setStateList on off
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_dimmer
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# A dimmable color light connected via zigbee2mqtt
|
||||
name:zigbee2mqtt_light_cct
|
||||
@ -186,6 +190,7 @@ attr DEVICE setList \
|
||||
color_temp:colorpicker,CT,154,2,500 $\DEVICETOPIC/set {"$EVTPART0":"$EVTPART1"}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_cct
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,97303.msg905935.html#msg905935
|
||||
name:zigbee2mqtt_light_rgb_hex
|
||||
@ -209,6 +214,7 @@ attr DEVICE setList \
|
||||
attr DEVICE userReadings hex:color_y.* {Color::xyY2hex(ReadingsVal($name,"color_x",0),ReadingsVal($name,"color_y",0),ReadingsVal($name,"brightness",254))}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgb_hex
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_light_rgb_rgb
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
@ -230,6 +236,7 @@ attr DEVICE setList \
|
||||
color:colorpicker,RGB {"$\DEVICETOPIC/set ".zigbee2mqtt_RGB2JSON($EVTPART1)}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgb_rgb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,97303.msg905935.html#msg905935
|
||||
name:zigbee2mqtt_light_rgbw_hex
|
||||
@ -256,6 +263,7 @@ attr DEVICE setList \
|
||||
attr DEVICE userReadings hex:color_y.* {Color::xyY2hex(ReadingsVal($name,"color_x",0),ReadingsVal($name,"color_y",0),ReadingsVal($name,"brightness",254))}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgbw_hex
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,97303.msg905935.html#msg905935
|
||||
name:zigbee2mqtt_light_rgbw_rgb
|
||||
@ -279,6 +287,7 @@ attr DEVICE setList \
|
||||
color:colorpicker,RGB {"$\DEVICETOPIC/set ".zigbee2mqtt_RGB2JSON($EVTPART1)}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgbw_rgb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,96985.msg902627.html#msg902627
|
||||
name:zigbee2mqtt_light_rgbcct_hex
|
||||
@ -302,6 +311,7 @@ attr DEVICE setList \
|
||||
hex:colorpicker,HEX,0,15,255 $\DEVICETOPIC/set {"color":{"$EVTPART0":"#$EVTPART1"}}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgbcct_hex
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,97303.msg905935.html#msg905935
|
||||
name:zigbee2mqtt_light_rgbcct_rgb
|
||||
@ -325,6 +335,7 @@ attr DEVICE setList \
|
||||
color:colorpicker,RGB {"$\DEVICETOPIC/set ".zigbee2mqtt_RGB2JSON($EVTPART1)}
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model zigbee2mqtt_light_rgbcct_rgb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_smokeDetector
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
@ -337,6 +348,7 @@ attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
attr DEVICE stateFormat smoke
|
||||
attr DEVICE model zigbee2mqtt_smokeDetector
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_hueMotionSensor
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
@ -351,6 +363,7 @@ attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
attr DEVICE userReadings temperature_weather { sprintf("%.1f",ReadingsVal($name,"temperature","")+2.5) }
|
||||
set DEVICE attrTemplate speechcontrol_gdt_and_mapping GENERICDEVTYPE=motion HOMEBRIDGEMAPPING="MotionDetected=state,values=motion:1;nomotion:0"
|
||||
attr DEVICE model zigbee2mqtt_hueMotionSensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_plug
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
@ -369,6 +382,7 @@ attr DEVICE setList \
|
||||
attr DEVICE setStateList on off
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model zigbee2mqtt_plug
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_plug_w_energy_measuring
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*
|
||||
@ -383,6 +397,7 @@ set DEVICE attrTemplate zigbee2mqtt_smart+plug
|
||||
#and additional devStateIcon
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model zigbee2mqtt_plug_w_energy_measuring
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# zigbee2mqtt 2 channel device
|
||||
name:zigbee2mqtt_2channel_split
|
||||
@ -406,6 +421,7 @@ attr DEVICE comment Channel 1 for DEVICE, see also DEVICE_CH2
|
||||
setreading DEVICE associatedWith DEVICE_CH2
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model zigbee2mqtt_2channel_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
copy DEVICE DEVICE_CH2
|
||||
attr DEVICE_CH2 comment Channel 2 for DEVICE
|
||||
setreading DEVICE_CH2 associatedWith DEVICE
|
||||
@ -417,6 +433,7 @@ deletereading -q DEVICE_CH2 (?!associatedWith).*
|
||||
attr DEVICE_CH2 jsonMap state_l1:0 state_l2:state state:0 consumption:0 linkquality:0 power:0 temperature:0
|
||||
set DEVICE_CH2 attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE_CH2 model zigbee2mqtt_2channel_split
|
||||
setreading DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
|
||||
# zigbee2mqtt 2 channel device with buttons, forum #102866
|
||||
name:zigbee2mqtt_2channel_split_w_buttons
|
||||
@ -437,6 +454,7 @@ attr DEVICE_CH2 setList \
|
||||
off:noArg $\DEVICETOPIC/right/set {"state":"OFF"}
|
||||
attr DEVICE_CH2 jsonMap state_left:0 state_right:state state:0 consumption:0 linkquality:0 power:0 temperature:0
|
||||
attr DEVICE,DEVICE_CH2 model zigbee2mqtt_2channel_split_w_buttons
|
||||
setreading DEVICE,DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_ContactSensor
|
||||
desc: Contact sensor via zigbee2mqtt <br>Tested with: Xiaomi models Aqara and Mijia
|
||||
@ -453,6 +471,7 @@ attr DEVICE jsonMap contact:state
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
set DEVICE attrTemplate speechcontrol_gdt_and_mapping GENERICDEVTYPE=contact HOMEBRIDGEMAPPING="ContactSensorState=state,values=closed:CONTACT_DETECTED;;open:CONTACT_NOT_DETECTED"
|
||||
attr DEVICE model zigbee2mqtt_ContactSensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_TempHumHpaSensor
|
||||
desc: Temp/hum/hpa sensor via zigbee2mqtt <br>Tested with: Xiaomi Aqara WSDCGQ11LM Temperature Humidity Sensor
|
||||
@ -467,6 +486,7 @@ attr DEVICE stateFormat {sprintf ("Temperature: %.1f°C Humidity: %.1f%% Pressur
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_TempHumHpaSensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg898198.html#msg898198
|
||||
name:zigbee2mqtt_TempHumSensor
|
||||
@ -482,6 +502,7 @@ attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_TempHumSensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg898198.html#msg898198
|
||||
name:zigbee2mqtt_Human_Motion_Sensor
|
||||
@ -497,6 +518,7 @@ attr DEVICE stateFormat Motion: occupancy Luminance: illuminance
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_Human_Motion_Sensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg975785.html#msg975785
|
||||
# Osram Lightify, Smart+ Motion Sensor
|
||||
@ -512,6 +534,7 @@ attr DEVICE stateFormat Motion: occupancy T: temperature
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_TempMotion_sensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg898198.html#msg898198
|
||||
name:zigbee2mqtt_Motion_Sensor
|
||||
@ -527,6 +550,7 @@ attr DEVICE stateFormat Motion: action X: angle_x Y: angle_y Z: angle_z
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_Motion_Sensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg898198.html#msg898198
|
||||
name:zigbee2mqtt_Water_Leak_Sensor
|
||||
@ -541,6 +565,7 @@ attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT,'',$JSONMAP) }
|
||||
attr DEVICE jsonMap water_leak:state
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_Water_Leak_Sensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg898198.html#msg898198
|
||||
name:zigbee2mqtt_Light_Switch
|
||||
@ -557,6 +582,7 @@ attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model zigbee2mqtt_Light_Switch
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg916789.html#msg916789
|
||||
name:zigbee2mqtt_Wireless_Button
|
||||
@ -573,6 +599,7 @@ attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_Wireless_Button
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_wireless_button_old
|
||||
desc: Wireless button without gyro via zigbee2mqtt <br>Tested with: Xiaomi Aqara WXKG11LM wireless button
|
||||
@ -587,6 +614,7 @@ attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_wireless_button_old
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:zigbee2mqtt_aqara_cube
|
||||
desc: Aqara smarthome cube via zigbee2mqtt <br>Tested with: Xiaomi Aqara MFKZQ01LM smarthome cube
|
||||
@ -599,6 +627,7 @@ attr DEVICE devicetopic BASE_TOPIC/DEV_ID
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_aqara_cube
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94494.msg983905.html#msg983905
|
||||
name:zigbee2mqtt_AlarmSensor
|
||||
@ -616,6 +645,7 @@ attr DEVICE stateFormat Action: action X: angle_x Y: angle_y Z: angle_z
|
||||
attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model zigbee2mqtt_AlarmSensor
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
###########################################
|
||||
@ -654,6 +684,7 @@ attr DEVICE setStateList on off toggle
|
||||
attr DEVICE comment NOTE: For on-for-timer SetExtensions are used. You may add on-for-timer option running on the device. The following is limited to 1h max duration, but will not affect future simple "on" commands:<br>on-for-timer {my $duration = $EVTPART1*10; 'cmnd/CMNDTOPIC/Backlog POWER1 1; delay '.$duration.'; POWER1 0'}<br>See the "Praxisbeispiele" in the wiki for "pulseTime1" alternative option and it's restrictions.
|
||||
attr DEVICE autocreate 0
|
||||
attr DEVICE model tasmota_basic_state_power1
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
option:{ CALLSPEECHRECOGN }
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
|
||||
@ -725,6 +756,7 @@ attr DEVICE devStateIcon {\
|
||||
) . "</div>"\
|
||||
}
|
||||
attr DEVICE model tasmota_1ch+motion+SI7021
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:tasmota_POW
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*(tele|cmnd|stat).*
|
||||
@ -742,6 +774,7 @@ deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE setStateList on off toggle
|
||||
attr DEVICE webCmd :
|
||||
attr DEVICE model tasmota_POW
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
# sonoff 1 channel + USB device flashed with Tasmota.
|
||||
@ -761,6 +794,7 @@ attr DEVICE_CH2 devStateIcon on:usb:off off:usb@red:on
|
||||
attr DEVICE_CH2 setStateList on off toggle
|
||||
#set DEVICE_CH2 attrTemplate speechcontrol_alaxaName_firstrun
|
||||
attr DEVICE,DEVICE_CH2 model tasmota_POW_USB_split
|
||||
setreading DEVICE,DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
|
||||
# plug with LED flashed with Tasmota.
|
||||
name:tasmota_plug_with_rgbw_split
|
||||
@ -803,6 +837,7 @@ deletereading -q DEVICE_CH2 (?!associatedWith).*
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
set DEVICE_CH2 attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE,DEVICE_CH2 model tasmota_plug_with_rgbw_split
|
||||
setreading DEVICE,DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
|
||||
#tasmota device with Infrared-circuit
|
||||
name:tasmota_ir
|
||||
@ -830,6 +865,7 @@ attr DEVICE stateFormat state\
|
||||
<a href="http://IPAddress" target="_blank">IPAddress</a>
|
||||
attr DEVICE event-on-change-reading .*
|
||||
attr DEVICE model tasmota_ir
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#tasmota device with rf-circuit
|
||||
name:tasmota_rf
|
||||
@ -855,6 +891,7 @@ attr DEVICE stateFormat state\
|
||||
<a href="http://IPAddress" target="_blank">IPAddress</a>
|
||||
attr DEVICE event-on-change-reading .*
|
||||
attr DEVICE model tasmota_rf
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# forum: https://forum.fhem.de/index.php/topic,104475.0.html
|
||||
name:tasmota_use_DS18x20_id
|
||||
@ -868,6 +905,7 @@ attr DEVICE readingList \
|
||||
TELETOPIC/RESULT:.* { json2nameValue($EVENT,'',$JSONMAP) }
|
||||
farewell:template has been applied successfully. You might want to edit readingList attribute to avoid double info or let autocreate add more entries.
|
||||
attr DEVICE model tasmota_use_DS18x20_id
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# tasmota 2ch as one FHEM device.
|
||||
name:tasmota_2ch_unified
|
||||
@ -900,6 +938,7 @@ attr DEVICE stateFormat LWT\
|
||||
<a href="http://IPAddress" target="_blank">IPAddress</a>
|
||||
attr DEVICE webCmd POWER1:POWER2
|
||||
attr DEVICE model tasmota_2ch_unified
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# sonoff 2 channel device flashed with Tasmota.
|
||||
name:tasmota_2channel_split
|
||||
@ -924,6 +963,7 @@ attr DEVICE_CH2 setList \
|
||||
toggle:noArg CMNDTOPIC/POWER2 2
|
||||
attr DEVICE_CH2 setStateList on off toggle
|
||||
attr DEVICE,DEVICE_CH2 model tasmota_2channel_split
|
||||
setreading DEVICE,DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
option:{ CALLSPEECHRECOGN }
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
set DEVICE_CH2 attrTemplate speechcontrol_type_switch
|
||||
@ -982,6 +1022,7 @@ commands may need restart to take effect.\
|
||||
For calibration, use of more than one shutter device and further information on the available commands see <a href="https://github.com/arendst/Tasmota/wiki/blinds-and-roller-shades">Tasmota wiki</a>.
|
||||
farewell:template has been applied successfully. Now it's recommended to set shutter's open and close duration and 50% position, see short instruction in comment attribute or the <br><a href="https://github.com/arendst/Tasmota/wiki/blinds-and-roller-shades">Tasmota wiki</a>.
|
||||
attr DEVICE model tasmota_2ch_shutter_invert_1
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
#option:{ CALLSPEECHRECOGN }
|
||||
set DEVICE attrTemplate speechcontrol_type_blind
|
||||
|
||||
@ -998,6 +1039,7 @@ defmod configure_DEVICEattrTemplate_at at +00:00:20 set IO_DEV publish CMNDTOPIC
|
||||
attr DEVICE devStateIcon opening:fts_shutter_up@red closing:fts_shutter_down@red Online:10px-kreis-gruen Offline:10px-kreis-rot 100:fts_shutter_10 0:fts_shutter_100 9\d.*:fts_shutter_10 8\d.*:fts_shutter_20 7\d.*:fts_shutter_30 6\d.*:fts_shutter_40 5\d.*:fts_shutter_50 4\d.*:fts_shutter_60 3\d.*:fts_shutter_70 2\d.*:fts_shutter_80 1\d.*:fts_shutter_90 \b\d\b.*:fts_shutter_90
|
||||
#set DEVICE attrTemplate speechcontrol_type_blind
|
||||
attr DEVICE model tasmota_2ch_shutter_invert_0
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# sonoff 4 channel device flashed with Tasmota.
|
||||
# contributed by Blauhorn, https://forum.fhem.de/index.php/topic,94495.msg976113.html#msg976113
|
||||
@ -1038,6 +1080,7 @@ attr DEVICE_CH4 readingList \
|
||||
attr DEVICE_CH4 setStateList on off toggle
|
||||
#set the model attr for all new devices
|
||||
attr DEVICE,DEVICE_CH2,DEVICE_CH3,DEVICE_CH4 model tasmota_4channel_split
|
||||
setreading DEVICE,DEVICE_CH2,DEVICE_CH3,DEVICE_CH4 attrTemplateVersion 20200522 or prior
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
set DEVICE_CH2 attrTemplate speechcontrol_type_switch
|
||||
set DEVICE_CH3 attrTemplate speechcontrol_type_switch
|
||||
@ -1177,6 +1220,7 @@ set IO_DEV publish CMNDTOPIC/restart 1
|
||||
#set DEVICE_USB attrTemplate speechcontrol_general_naming_master_template
|
||||
farewell:Template has been applied successfully. Wait some seconds for reboot to complete and watch readings get populated.
|
||||
attr DEVICE,DEVICE_CH2,DEVICE_CH3,DEVICE_USB model tasmota_3socketUSB_channel_split
|
||||
setreading DEVICE,DEVICE_CH2,DEVICE_CH3,DEVICE_USB attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
# tasmota 4ch as one FHEM device.
|
||||
@ -1213,6 +1257,7 @@ attr DEVICE stateFormat LWT\
|
||||
<br><a href="http://IPAddress" target="_blank">IPAddress</a>
|
||||
attr DEVICE webCmd POWER1:POWER2:POWER3:POWER4
|
||||
attr DEVICE model tasmota_4ch_unified_icon
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# tasmota 4ch as one FHEM device.
|
||||
name:tasmota_4ch_unified_basic_text
|
||||
@ -1238,6 +1283,7 @@ attr DEVICE setStateList on off toggle
|
||||
attr DEVICE stateFormat P1: POWER1 P2: POWER2 P3: POWER3 P4: POWER4
|
||||
attr DEVICE webCmd POWER1 toggle:POWER2 toggle:POWER3 toggle:POWER4 toggle
|
||||
attr DEVICE model tasmota_4ch_unified_basic_text
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# contributed by hummeruli, https://forum.fhem.de/index.php/topic,94495.msg1026611.html#msg1026611
|
||||
# tasmota 8ch as one FHEM device.
|
||||
@ -1285,6 +1331,7 @@ attr DEVICE stateFormat LWT\
|
||||
7:POWER7\
|
||||
8:POWER8
|
||||
attr DEVICE model tasmota_8ch_unified_icon
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,94495.msg899041.html#msg899041
|
||||
name:tasmota_rgb_led_controller
|
||||
@ -1309,6 +1356,7 @@ attr DEVICE devStateIcon {Color::devStateIcon($name,"rgb","Color","Dimmer","stat
|
||||
attr DEVICE webCmd Color:Color ff0000:Color 00ff00:Color 0000ff:toggle:on:off
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model tasmota_rgb_led_controller
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:tasmota_rgbw_led
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*(tele|cmnd|stat).*
|
||||
@ -1352,6 +1400,7 @@ attr DEVICE devStateIcon {Color::devStateIcon($name,"rgb","Color","pct","state")
|
||||
attr DEVICE setStateList on off toggle
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model tasmota_rgbw_led
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:tasmota_rgbcct_light
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*(tele|cmnd|stat).*
|
||||
@ -1380,6 +1429,7 @@ attr DEVICE webCmdLabel Helligkeit\
|
||||
:Temp
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model tasmota_rgbcct_led
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:tasmota_cct_led
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*(tele|cmnd|stat).*
|
||||
@ -1414,6 +1464,7 @@ attr DEVICE devStateIcon {Color::devStateIcon($name,"dimmer",'',"pct","state")}
|
||||
attr DEVICE setStateList on off toggle
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model tasmota_cct_led
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,105364.0.html
|
||||
name:tasmota_TuyaMCU_dimmer
|
||||
@ -1439,6 +1490,7 @@ attr DEVICE comment After applying the template, the device to be controlled nee
|
||||
farewell:template has been applied successfully. Now it's recommended to do some configruation, see <a href="https://github.com/arendst/Tasmota/wiki/TuyaMCU-Configurations#dimmer">Tasmota wiki</a> instructions.
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model tasmota_TuyaMCU_dimmer
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:tasmota_set_lowercase_texts_and_state1
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*(tele|cmnd|stat).*
|
||||
@ -1491,6 +1543,7 @@ deletereading -q DEVICE (?!associatedWith).*
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model shelly1
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:shelly_announces
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*shellies.*
|
||||
@ -1513,6 +1566,7 @@ par:DEVNAME;ShellyPlug name in the topic;{ AttrVal("DEVICE","readingList","") =~
|
||||
set DEVICE attrTemplate shelly1
|
||||
attr DEVICE getList power:noArg shellies/DEVNAME/relay/power power
|
||||
attr DEVICE model shellyplug
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#contributed by 87insane, https://forum.fhem.de/index.php/topic,94060.msg934614.html#msg934614
|
||||
# shelly1pm using original firmware.
|
||||
@ -1551,6 +1605,7 @@ deletereading -q DEVICE (?!associatedWith).*
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model shelly1_w_energy_meassuring
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
option:{ RADIO_SETUSERREADING }
|
||||
attr DEVICE userReadings NEWUSERREADINGS
|
||||
|
||||
@ -1566,6 +1621,7 @@ attr DEVICE devStateIcon { my $amp = ReadingsVal($name,"online","false") eq "fal
|
||||
attr DEVICE userReadings total_temp:loadState:.on { ReadingsNum("$name","relay_0_kWh",0) },wash:loadState:.off { ReadingsNum("$name","total",0) - ReadingsNum("$name","total_temp",0) },price:loadState:.off {sprintf("%.2f",ReadingsNum("$name","wash",1)*ReadingsNum("kWh_Price","state",0.30))},time:loadState:.off {strftime("%H:%M", localtime(ReadingsAge("$name","total_temp",0)-3600))}
|
||||
attr DEVICE comment To get appropriate loadState values: Change the default limit "100" in readingList to your needs; using a seperate device named kWh_Price indicating actual energy price in state will lead to realistic price results or change the refference/the value "0.30" in userReadings "price".
|
||||
attr DEVICE model shelly1_w_energy_meassuring_washer_example
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shelly2 using original firmware in roller mode.
|
||||
name:shelly2_roller
|
||||
@ -1598,6 +1654,7 @@ attr DEVICE setStateList open close stop
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_blind
|
||||
attr DEVICE model shelly2_roller
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shelly25 using original firmware in roller mode.
|
||||
# contributed by 87insane, https://forum.fhem.de/index.php/topic,94060.msg940978.html#msg940978
|
||||
@ -1640,6 +1697,7 @@ attr DEVICE setStateList open close half stop pct
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_blind
|
||||
attr DEVICE model shelly25_roller_invert_0
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:shelly25_roller_invert_1
|
||||
filter:TYPE=MQTT2_DEVICE:FILTER=readingList=.*shellies.*
|
||||
@ -1680,6 +1738,7 @@ attr DEVICE setStateList open close half stop pct
|
||||
set DEVICE x_mqttcom announce
|
||||
#set DEVICE attrTemplate speechcontrol_type_blind
|
||||
attr DEVICE model shelly25_roller_invert_1
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shelly2 using original firmware.
|
||||
# NOTE: a second device will be created for the second channel
|
||||
@ -1698,7 +1757,9 @@ attr DEVICE_CH2 setList \
|
||||
off:noArg shellies/DEVNAME/relay/1/command off\
|
||||
on:noArg shellies/DEVNAME/relay/1/command on
|
||||
attr DEVICE model shelly2_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE_CH2 model shelly2_split
|
||||
setreading DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shelly2.5 using original firmware.
|
||||
# Based on user 87insane contribution in https://forum.fhem.de/index.php/topic,94060.msg962167.html#msg962167
|
||||
@ -1741,6 +1802,7 @@ attr DEVICE_CH2 setList \
|
||||
on:noArg shellies/DEVNAME/relay/1/command on
|
||||
attr DEVICE_CH2 devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "true"?"10px-kreis-gruen":"10px-kreis-rot";; my $light = ReadingsVal($name,"state","off");; my $cons = ReadingsVal($name,"relay_1_power","unknown");; my $temp = ReadingsVal($name,"temperature","-100");;"<div><a href=\"http://".ReadingsVal($name,"ip","none")." \"target=\"_blank\">".FW_makeImage($onl)."</a> <a href=\"/fhem?cmd.dummy=set $name toggle&XHR=1\">".FW_makeImage($light)."</a> Aktuell: $cons W / Temp.: $temp °C</div>"}
|
||||
attr DEVICE model shelly25_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shelly4pro using original firmware
|
||||
name:shelly4pro_split
|
||||
@ -1785,9 +1847,13 @@ attr DEVICE_CH4 getList \
|
||||
energy3:noArg shellies/DEVNAME/relay/3/energy energy3
|
||||
attr DEVICE_CH4 comment Channel 4 for DEVICE, see also DEVICE, DEVICE_CH2 and DEVICE_CH3
|
||||
attr DEVICE model shelly4pro_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE_CH2 model shelly4pro_split
|
||||
setreading DEVICE_CH2 attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE_CH3 model shelly4pro_split
|
||||
setreading DEVICE_CH3 attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE_CH4 model shelly4pro_split
|
||||
setreading DEVICE_CH4 attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shelly4pro unified device using original firmware
|
||||
# source: https://forum.fhem.de/index.php/topic,97218.msg905689.html#msg905689
|
||||
@ -1836,6 +1902,7 @@ attr DEVICE setList \
|
||||
attr DEVICE webCmd relay0:relay1:relay2:relay3
|
||||
attr DEVICE stateFormat R0: relay0 R1: relay1 R2: relay2 R3: relay3
|
||||
attr DEVICE model shelly4pro_unified
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shellybulb using original firmware
|
||||
name:shellybulb
|
||||
@ -1865,6 +1932,7 @@ attr DEVICE jsonMap brightness:pct
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model shellybulb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# contributed by KurtK https://forum.fhem.de/index.php/topic,94495.msg1055093.html#msg1055093
|
||||
# shellyduo using original firmware
|
||||
@ -1900,6 +1968,7 @@ attr DEVICE jsonMap brightness:pct
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model shellyduo
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
# shellyht using original firmware
|
||||
@ -1916,6 +1985,7 @@ attr DEVICE setList \
|
||||
attr DEVICE stateFormat T: temperature °C H: humidity % B: battery %
|
||||
set DEVICE x_mqttcom announce
|
||||
attr DEVICE model shellyht
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shellyflood using original firmware
|
||||
name:shellyflood
|
||||
@ -1937,6 +2007,7 @@ attr DEVICE stateFormat flood (bat batteryPercent%)
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
set DEVICE x_mqttcom announce
|
||||
attr DEVICE model shellyflood
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# shellydw using original firmware
|
||||
# contributed by majestro84, https://forum.fhem.de/index.php/topic,94060.msg1054466.html#msg1054466
|
||||
@ -1960,6 +2031,7 @@ attr DEVICE setList x_update:noArg shellies/DEVNAME/command update_fw\
|
||||
x_mqttcom shellies/DEVNAME/command $EVTPART1
|
||||
attr DEVICE userReadings state:(doorWindow|tilt).* { ReadingsVal($name,"doorWindow","") eq "close" ? 'closed' : ReadingsNum($name,"tilt",1) > 0 ? 'tilted' :'open' }
|
||||
attr DEVICE model shellydw
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#shelly2rgbw
|
||||
# contributed by dkreutz http://forum.fhem.de/index.php/topic,94060.msg944338.html#msg944338
|
||||
@ -1995,6 +2067,7 @@ attr DEVICE devStateIcon {my $onl = ReadingsVal($name,"online","false") eq "true
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model shelly2rgbw_color
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#contributed by user sledge
|
||||
name:shelly2rgbw_4w_split
|
||||
@ -2022,6 +2095,7 @@ set DEVICE x_mqttcom announce
|
||||
attr DEVICE jsonMap brightness:pct
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model shelly2rgbw_4w_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE comment Channel 1 for DEVICE, see also DEVICE_CH2, DEVICE_CH3 and DEVICE_CH4
|
||||
attr DEVICE autocreate 0
|
||||
attr DEVICE setStateList on off
|
||||
@ -2090,6 +2164,7 @@ attr DEVICE devStateIcon {my $lderr = ReadingsVal($name,"loaderror","true") eq "
|
||||
set DEVICE x_mqttcom announce
|
||||
set DEVICE attrTemplate speechcontrol_type_light
|
||||
attr DEVICE model shellydimmer
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
###########################################
|
||||
@ -2125,6 +2200,7 @@ attr DEVICE setStateList on off toggle
|
||||
attr DEVICE event-on-change-reading .*
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model ESPurna_single_relay
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
name:ESPurna_4socketUSB_unified
|
||||
@ -2176,6 +2252,7 @@ attr DEVICE stateFormat LWT\
|
||||
<a href="http://ip" target="_blank">ip</a>
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model ESPurna_4socketUSB_unified
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
deletereading -q DEVICE relay_.*
|
||||
|
||||
name:ESPurna_4socketUSB_split
|
||||
@ -2189,6 +2266,7 @@ attr DEVICE event-on-change-reading .*
|
||||
attr DEVICE setStateList on off toggle
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model ESPurna_4socketUSB_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE devStateIcon Online:10px-kreis-gruen Offline:10px-kreis-rot
|
||||
attr DEVICE stateFormat <a href="http://ip" target="_blank">ip\
|
||||
LWT\
|
||||
@ -2266,6 +2344,7 @@ par:CMNDTOPIC;Command topic prefix;{ AttrVal("DEVICE","readingList","") =~ m,([^
|
||||
par:ICON;ICON as set, defaults to on;{ AttrVal("DEVICE","icon","on") }
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE model 8channel_ethernet_board_split
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
attr DEVICE setStateList on off
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
@ -2332,6 +2411,7 @@ attr DEVICE setList out1:0,1 {my $command = $EVTPART1."xxxxxxx";; "CMNDTOPIC set
|
||||
out7:0,1 {my $command = "xxxxxx".$EVTPART1."x";; "CMNDTOPIC setr=$command"}\
|
||||
out8:0,1 {"CMNDTOPIC setr=xxxxxxx".$EVTPART1}
|
||||
attr DEVICE model 8channel_ethernet_board_unified
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
|
||||
@ -2366,6 +2446,7 @@ set DEVICE getKnown
|
||||
attr DEVICE comment NOTE: additional templates and code have been downloaded from svn (contrib).
|
||||
farewell:template has been applied successfully. <br>NOTE: additional templates and code have been downloaded from svn (contrib). <br>To configure further parts of your ebus ecosystem, have a look at these templates and the <a href=https://wiki.fhem.de/wiki/EBUS-MQTT2">Wiki</a>.
|
||||
attr DEVICE model eBus_daemon_splitter
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
###########################################
|
||||
@ -2397,6 +2478,7 @@ attr DEVICE devStateIcon online:it_net offline:it_net@red 2.1:lan_rs485 2.0:lan
|
||||
attr DEVICE autocreate 1
|
||||
attr DEVICE webCmd restart
|
||||
attr DEVICE model ems-esp_heater_device
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:ems-esp_boiler
|
||||
filter:TYPE=MQTT2_DEVICE
|
||||
@ -2411,6 +2493,7 @@ attr DEVICE readingList BASEPATH/boiler_data { json2nameValue($EVENT,'',$JSONMAP
|
||||
attr DEVICE stateFormat { my $h=ReadingsNum($name,"heating_active",0); my $t=ReadingsNum($name,"tapwater_active",0); !$h && !$t ? "idle" : ($h && !$t ? "heating" : "tapwater")}
|
||||
attr DEVICE devStateIcon idle:sani_heating heating:sani_heating@red tapwater:sani_water_hot@red
|
||||
attr DEVICE model ems-esp_boiler
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#ems-esp thermostat device
|
||||
name:ems-esp_thermostat_read-only
|
||||
@ -2427,6 +2510,7 @@ attr DEVICE stateFormat mode\
|
||||
desired-temp °C
|
||||
attr DEVICE webCmd :
|
||||
attr DEVICE model ems-esp_thermostat_read-only
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:ems-esp_thermostat_simple
|
||||
filter:TYPE=MQTT2_DEVICE
|
||||
@ -2446,6 +2530,7 @@ desired-temp °C
|
||||
attr DEVICE webCmd mode:desired-temp
|
||||
set DEVICE attrTemplate speechcontrol_type_thermostat
|
||||
attr DEVICE model ems-esp_thermostat_simple
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:ems-esp_thermostat_RC35_type
|
||||
filter:TYPE=MQTT2_DEVICE
|
||||
@ -2460,6 +2545,7 @@ attr DEVICE setList mode:uzsuSelectRadio,auto,manual BASEPATH/thermostat_cmd_mod
|
||||
holidaytemp:slider,15.0,0.5,30.0,1 BASEPATH/thermostat_cmd_holidayttemp1 $EVTPART1
|
||||
set DEVICE attrTemplate speechcontrol_type_thermostat
|
||||
attr DEVICE model ems-esp_thermostat_RC35_type
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
###############
|
||||
@ -2484,6 +2570,7 @@ status\
|
||||
version
|
||||
attr DEVICE devStateIcon connected:10px-kreis-gruen disconnected.*:10px-kreis-rot
|
||||
attr DEVICE model esp_milight_hub_bridge
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
{ AttrTemplate_Initialize() }
|
||||
|
||||
|
||||
@ -2522,6 +2609,7 @@ attr DEVICE comment To switch device also on when changing brightness, change pa
|
||||
attr DEVICE setExtensionsEvent 1
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model esp_milight_hub_rgbw_bulb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#rgbw-group
|
||||
name:esp_milight_hub_make_rgbw_group
|
||||
@ -2552,6 +2640,7 @@ attr milight_REMOTE_ID_0 setStateList on off
|
||||
modify milight_REMOTE_ID_0 milight_REMOTE_ID_0
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr milight_REMOTE_ID_0 model esp_milight_hub_make_rgbw_group
|
||||
setreading milight_REMOTE_ID_0 attrTemplateVersion 20200522 or prior
|
||||
|
||||
#rgbw_cct-bulb
|
||||
name:esp_milight_hub_rgb_cct_bulb
|
||||
@ -2595,6 +2684,7 @@ attr DEVICE setStateList on off
|
||||
attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described.
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model esp_milight_hub_rgb_cct_bulb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#cct-only-bulb
|
||||
name:esp_milight_hub_cct_only_bulb
|
||||
@ -2631,6 +2721,7 @@ attr DEVICE setStateList on off
|
||||
attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described.
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model esp_milight_hub_cct_only_bulb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#rgbw-bulb
|
||||
name:esp_milight_hub_max_features_bulb
|
||||
@ -2674,6 +2765,7 @@ attr DEVICE eventMap /set_white:Weiss/night_mode:Nacht/white_mode:white/on:on/of
|
||||
attr DEVICE comment To switch device also on when changing brightness, change payload pattern to {"status":"ON","$EVTPART0":"$EVTPART1"} or add a new element to setList, similar to brightness, e.g.brightness_on and change payload pattern as described.
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
attr DEVICE model esp_milight_hub_max_features_bulb
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#remote for event generation only
|
||||
name:esp_milight_hub_remote_events_only
|
||||
@ -2690,6 +2782,7 @@ attr DEVICE readingList \
|
||||
BASE_ID/states/REMOTE_ID/BULB_TYPE/GROUP_ID:.* { }\
|
||||
BASE_ID/updates/REMOTE_ID/BULB_TYPE/GROUP_ID:.* { json2nameValue($EVENT) }
|
||||
attr DEVICE model esp_milight_hub_remote_events_only
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
###############
|
||||
#OpenMQTTGateway
|
||||
@ -2727,6 +2820,7 @@ LWT\
|
||||
attr DEVICE icon ICON
|
||||
attr DEVICE devStateIcon online:10px-kreis-gruen offline.*:10px-kreis-rot
|
||||
attr DEVICE model OpenMQTTGateway_MCU
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
{ AttrTemplate_Initialize() }
|
||||
|
||||
name:OpenMQTTGateway_BT_scanner
|
||||
@ -2750,6 +2844,7 @@ attr DEVICE setList\
|
||||
attr DEVICE periodicCmd deleteReadings:1440
|
||||
attr DEVICE stateFormat Last: last
|
||||
attr DEVICE model OpenMQTTGateway_BT_scanner
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:OpenMQTTGateway_BT_gtag
|
||||
prereq:{my @devices=devspec2array("model=OpenMQTTGateway_MCU");;return 1 if $devices[0];;return 0}
|
||||
@ -2773,6 +2868,7 @@ attr OMG_BT_ID stateFormat Last IO: last_IO
|
||||
attr OMG_BT_ID room NEWDEVROOM
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=OMG_BT_ID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
attr OMG_BT_ID model OpenMQTTGateway_BT_gtag
|
||||
setreading OMG_BT_ID attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
name:OpenMQTTGateway_BT_mi_flora_sensor
|
||||
@ -2796,6 +2892,7 @@ attr OMG_BT_ID stateFormat T: temperature°C, M: moisture%, L: lux, F: fertility
|
||||
attr OMG_BT_ID room NEWDEVROOM
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=OMG_BT_ID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
attr OMG_BT_ID model OpenMQTTGateway_BT_mi_flora_sensor
|
||||
setreading OMG_BT_ID attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
name:OpenMQTTGateway_simple_RF433_switch
|
||||
@ -2825,6 +2922,7 @@ attr OMG_DEVCID setList\
|
||||
farewell:template has been applied successfully.
|
||||
attr OMG_DEVCID room NEWDEVROOM
|
||||
attr OMG_DEVCID model OpenMQTTGateway_simple_RF433_switch
|
||||
setreading OMG_DEVCID attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:OpenMQTTGateway_bme
|
||||
prereq:{my @devices=devspec2array("model=OpenMQTTGateway_MCU");;return 1 if $devices[0];;return 0}
|
||||
@ -2840,6 +2938,7 @@ attr DEVICE readingList\
|
||||
attr DEVICE stateFormat BME_tempc °C - BME_hum % - hpa hPa
|
||||
attr DEVICE userReadings hpa:BME_pa.* {ReadingsVal($name,"BME_pa",0)/100}
|
||||
attr DEVICE model OpenMQTTGateway_bme
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:OpenMQTTGateway_ir
|
||||
prereq:{my @devices=devspec2array("model=OpenMQTTGateway_MCU");;return 1 if $devices[0];;return 0}
|
||||
@ -2855,6 +2954,7 @@ attr DEVICE readingList\
|
||||
attr DEVICE setList irsend:textField BASE_ID/DEVNAME/IRtoMQTT {"value":$EVTPART2,"protocol_name":"IR_$EVTPART1"}
|
||||
attr DEVICE comment irsend needs Infos about protocol and value (n decimal), so e.g."IR_NEC 1587664935" should be fine...
|
||||
attr DEVICE model OpenMQTTGateway_ir
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:OpenMQTTGateway_BT_temp_hum_sensor
|
||||
prereq:{my @devices=devspec2array("model=OpenMQTTGateway_MCU");;return 1 if $devices[0];;return 0}
|
||||
@ -2879,6 +2979,7 @@ attr OMG_BT_ID stateFormat T: temperature°C, H: humidity%rH
|
||||
attr OMG_BT_ID room NEWDEVROOM
|
||||
{ fhem "trigger $FW_wname JS:location.href='$FW_ME?detail=OMG_BT_ID'" if($cl && $cl->{TYPE} eq "FHEMWEB") }
|
||||
attr OMG_BT_ID model OpenMQTTGateway_BT_temp_hum_sensor
|
||||
setreading OMG_BT_ID attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
###############
|
||||
@ -2921,6 +3022,7 @@ attr DEVICE setList\
|
||||
action owntracks/TRACKER_ID/DEV_ID/cmd {"_type":"cmd","action":"action",$EVTPART1}
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model owntracks_device
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
name:roborock
|
||||
@ -2953,6 +3055,7 @@ attr DEVICE setStateList charge locate pause stop start
|
||||
attr DEVICE comment For original code for "attrTmqtt2_roborock_valetudo2svg()" see <a href="https://forum.fhem.de/index.php/topic,104687.msg986304.html#msg986304">this forum thread</a>. To display generated map seperately, define a weblink device: <br>define valetudo_map weblink htmlCode <img src="fhem/images/DEVNAME_map.svg">
|
||||
farewell:template has been applied successfully. <br>NOTE: additional code has been downloaded from svn (contrib). <br>Generated map will be shown as devStateIcon or define a weblink device: define valetudo_map weblink htmlCode <img src="fhem/images/DEVNAME_map.svg">.<br>For details, see <a href="https://forum.fhem.de/index.php/topic,104687.msg986304.html#msg986304">this forum thread</a>. NOTE: For use with rand256-Valetudo variant of the code with external map generator, change "svg" in devStateIcon code to "png", change readingList entry for map_data to "BASE_ID/DEVNAME/map_data:.* {}" and add the following line: <br>BASE_ID/DEVNAME/map:.* { WriteFile("www/images/DEVNAME_map.png",$EVENT);; {map=>"images/DEVNAME_map.png"} }
|
||||
attr DEVICE model roborock
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
# source: https://forum.fhem.de/index.php/topic,105222.0.html
|
||||
name:wallpanel_app
|
||||
@ -2984,6 +3087,7 @@ attr DEVICE setList alert:textField wallpanel/DEVNAME/command {"eval": "alert('$
|
||||
attr DEVICE comment For further info on configuration and available commands see <a href="https://thanksmister.com/wallpanel-android/">project page</a>.
|
||||
farewell:template has been applied successfully. For further info on configuration and available commands see <a href="https://thanksmister.com/wallpanel-android/">project page</a>.
|
||||
attr DEVICE model wallpanel_app
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:weewx_weather_station
|
||||
filter:TYPE=MQTT2_DEVICE
|
||||
@ -3016,6 +3120,7 @@ attr DEVICE readingList BASE_ID/outTemp_C:.* temperature\
|
||||
attr DEVICE stateFormat T: temperature°C, H: humidity%rH, P: barometer hPa
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model weewx_weather_station
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,98880.msg995308.html#msg995308
|
||||
name:wled_controller
|
||||
@ -3058,6 +3163,7 @@ attr DEVICE comment For questions about the use of different widgets for color s
|
||||
set DEVICE attrTemplate speechcontrol_type_light_255
|
||||
farewell:template has been applied successfully. <br>Note: webCmd and eventMap are just examples; adopt this to your needs.
|
||||
attr DEVICE model wled_controller
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
###########################################
|
||||
@ -3094,6 +3200,7 @@ attr DEVICE comment Note: FabLab-Luenen/McLighting v3.1 needed because of API ch
|
||||
Note: ENABLE_HOMEASSISTANT should be enabled, since more MQTT messages will be send \
|
||||
Note: webCmd and eventMap are just examples - adopt this to your needs.
|
||||
attr DEVICE model McLighting
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#source post: https://forum.fhem.de/index.php/topic,105457.msg993924.html#msg993924
|
||||
name:go_eCharger
|
||||
@ -3117,4 +3224,5 @@ attr DEVICE devStateIcon ALW.1:status_open:Activation+0 ALW.0:status_locked:Acti
|
||||
attr DEVICE userReadings charger_state:car.* { my $val = ReadingsVal($name,"car","none");; my %rets = ("none" => "-1","1" => "Ready","2" => "Charging","3" => "waiting for car","4" => "Charging finished",);; $rets{$val}}, energy_total:eto.* { ReadingsVal($name,"eto",0)*0.1 }, energy_akt:dws.* { ReadingsVal($name,"dws",0)*2.77 }
|
||||
deletereading -q DEVICE (?!associatedWith).*
|
||||
attr DEVICE model go_eCharger
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
@ -12,29 +12,37 @@
|
||||
###########################################
|
||||
# Example sketches from MySensors.org
|
||||
# simple stateFormat versions
|
||||
name:A_01a1_air_humidity_dht
|
||||
name:air_humidity_dht
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard DHT sketch without battery reading<br>NOTE: Untested first template version
|
||||
order:A_01a1
|
||||
attr DEVICE stateFormat T: temperature1 H: humidity
|
||||
attr DEVICE model A_01a1_air_humidity_dht
|
||||
attr DEVICE model air_humidity_dht
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:A_01a2_air_humidity_Si7021
|
||||
name:air_humidity_Si7021
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard DHT sketch with battery reading<br>NOTE: Untested first template version
|
||||
order:A_01a2
|
||||
attr DEVICE stateFormat T: temperature1 H: humidity Bat: batteryLevel
|
||||
attr DEVICE model A_01a2_air_humidity_Si7021
|
||||
attr DEVICE model air_humidity_Si7021
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:A_02a_atmospheric_pressure
|
||||
name:atmospheric_pressure
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard Atmospheric Pressure sketch (BME280)NOTE: Untested first template version
|
||||
order:A_02a
|
||||
attr DEVICE stateFormat T: temperature H: humidity1 P: pressure2 Forecast: forecast2
|
||||
attr DEVICE model A_02a_atmospheric_pressure
|
||||
attr DEVICE model atmospheric_pressure
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:A_03a_bed_occupancy
|
||||
name:bed_occupancy
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard bed occupancy sketch (MPR121) <br>NOTE: Sketch is still in MySensors 1.x format and has to be changed for use with recent arduino libs.NOTE: Untested first template version
|
||||
oder:A_03a
|
||||
attr DEVICE stateFormat Left: motion Right: motion1
|
||||
attr DEVICE model A_03a_bed_occupancy
|
||||
attr DEVICE model bed_occupancy
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#A_04a_Dimmer - LED
|
||||
#A_05a_Display and Time
|
||||
@ -51,11 +59,13 @@ attr DEVICE model A_03a_bed_occupancy
|
||||
#A_16a1_Light Level - BH1750
|
||||
#A_16a2_Light Level - LM393
|
||||
|
||||
name:A_17a_Motion
|
||||
name:Motion
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard motion sketch
|
||||
order:A_17a
|
||||
attr DEVICE stateFormat Motion: motion1
|
||||
attr DEVICE model A_17a_Motion
|
||||
attr DEVICE model Motion
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#A_18a_Orientation Actuator
|
||||
#A_19a_Orientation Sensor
|
||||
@ -64,14 +74,16 @@ attr DEVICE model A_17a_Motion
|
||||
#A_22a_Pulse Water Meter
|
||||
#A_23a_Rain Gauge
|
||||
|
||||
name:A_24a_Relay_Actuator
|
||||
name:Relay_Actuator
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard relay actuator sketch
|
||||
order:A_24a
|
||||
attr DEVICE setCommands on:status1:on off:status1:off
|
||||
attr DEVICE setExtensionsEvent 1
|
||||
attr DEVICE devStateIcon .*on:on .*off:off on.(for.timer|till.*):on-for-timer:off off.(for.timer|till.*):off-for-timer:on blink.*:light_toggle:off
|
||||
set DEVICE attrTemplate speechcontrol_type_switch
|
||||
attr DEVICE model A_24a_Relay_Actuator
|
||||
attr DEVICE model Relay_Actuator
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
|
||||
#A_25a_RFID
|
||||
@ -84,11 +96,13 @@ attr DEVICE model A_24a_Relay_Actuator
|
||||
#A_32a_Starry Sky
|
||||
|
||||
|
||||
name:A_33a_temperature
|
||||
name:temperature
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard temperature sketch (DS18B20) NOTE: Untested first template version
|
||||
order:A_33a
|
||||
attr DEVICE stateFormat T0: temperature T1: temperature1 T2: temperature2
|
||||
attr DEVICE model A_33a_temperature
|
||||
attr DEVICE model temperature
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
#A_34a_UV
|
||||
#A_35a_Whole House Fan
|
||||
@ -97,33 +111,38 @@ attr DEVICE model A_33a_temperature
|
||||
# Example sketches from MySensors.org
|
||||
# Advanced stateFormat and devStateIcon versions
|
||||
|
||||
name:B_01a1_air_humidity_dht
|
||||
name:air_humidity_dht
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard DHT sketch without battery reading<br>NOTE: Untested first template version
|
||||
order:B_01a1
|
||||
attr DEVICE stateFormat temp_temperature\
|
||||
temperature1 \
|
||||
humidity\
|
||||
humidity
|
||||
attr DEVICE model B_01a1_air_humidity_dht
|
||||
attr DEVICE model air_humidity_dht
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
name:B_02a_atmospheric_pressure
|
||||
name:atmospheric_pressure
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Applies to standard Atmospheric Pressure sketch (BME280)NOTE: Untested first template version
|
||||
order:B_02a
|
||||
attr DEVICE stateFormat temp_temperature\
|
||||
temperature \
|
||||
humidity\
|
||||
humidity1 <br>
|
||||
weather_barometric_pressure\
|
||||
pressure2 Forecast: forecast2
|
||||
attr DEVICE model B_02a_atmospheric_pressure
|
||||
attr DEVICE model atmospheric_pressure
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
||||
###########################################
|
||||
# Advanced sketches
|
||||
|
||||
#4 relay
|
||||
name:C_04_4ch_unified_icon
|
||||
name:4ch_unified_icon
|
||||
filter:TYPE=MYSENSORS_DEVICE
|
||||
desc:Device with 4 relays attached <br>NOTE: Clicking on icons will issue a corresponding toggle command
|
||||
order:C_04
|
||||
attr DEVICE devStateIcon {\
|
||||
"<div><a href=\"/fhem?cmd.dummy=set ".$name." status1 toggle&XHR=1\">status1:"\
|
||||
. FW_makeImage(lc ReadingsVal($name, "status1", "off"))\
|
||||
@ -136,4 +155,5 @@ attr DEVICE devStateIcon {\
|
||||
}
|
||||
attr DEVICE stateFormat P1: status1 P2: status2 P3: status3 P4: status4 Status: state
|
||||
attr DEVICE webCmd :
|
||||
attr DEVICE model C_04_4ch_unified_icon
|
||||
attr DEVICE model 4ch_unified_icon
|
||||
setreading DEVICE attrTemplateVersion 20200522 or prior
|
||||
|
Loading…
x
Reference in New Issue
Block a user