From 4da22c8d9a9a232eef2ec2960916958c445c2e6f Mon Sep 17 00:00:00 2001 From: Beta-User Date: Tue, 12 Mar 2019 20:13:52 +0000 Subject: [PATCH] mqtt2.template: add 2 more zigbee devices git-svn-id: https://svn.fhem.de/fhem/trunk@18878 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 24 ++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index 59f9384ab..15f839c70 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -11,7 +11,7 @@ ########################################### name:0_00_General_Info filter:TYPE=MQTT2_DEVICE -desc: Forum Thread for
- suggesting new templates
- bug reports on mqtt2.template +desc: Forum Thread for
- suggesting new templates
- bug reports on mqtt2.template
NOTE: Some templates are only visible in case the existing device configuration meets some minimum requirements, e.g. the CID starting with "zigbee"!
Have a look in the mqtt2.template file itself to get more info ############### #MQTT2_CLIENT_Bridge @@ -343,6 +343,28 @@ attr DEVICE readingList BASE_TOPIC/DEV_ID:.* { json2nameValue($EVENT) } deletereading DEVICE .* attr DEVICE model L_12_Wireless_Button +name:L_13_zigbee2mqtt_wireless_button_old +desc: Wireless button without gyro via zigbee2mqtt
Tested with: Xiaomi Aqara WXKG11LM wireless button +filter:TYPE=MQTT2_DEVICE:FILTER=CID=zigbee.* +par:BASE_TOPIC;base topic as set in configuration.yaml of the zigbee2mqtt bridge in the topics;{ AttrVal("DEVICE","readingList","") =~ m,([^/]+)[/].*:, ? $1 : undef } +par:DEV_ID;name of the device in the zigbee2mqtt bridge;{ AttrVal("DEVICE","readingList","") =~ m,[^/]+[/]([^/]+).*:, ? $1 : undef } +attr DEVICE stateFormat Click: click +attr DEVICE readingList BASE_TOPIC/DEV_ID:.* { json2nameValue($EVENT) } +deletereading DEVICE .* +attr DEVICE model L_13_wireless_button_old + +name:L_14_zigbee2mqtt_aqara_cube +desc: Aqara smarthome cube via zigbee2mqtt
Tested with: Xiaomi Aqara MFKZQ01LM smarthome cube +filter:TYPE=MQTT2_DEVICE:FILTER=CID=zigbee.* +par:BASE_TOPIC;base topic as set in configuration.yaml of the zigbee2mqtt bridge in the topics;{ AttrVal("DEVICE","readingList","") =~ m,([^/]+)[/].*:, ? $1 : undef } +par:DEV_ID;name of the device in the zigbee2mqtt bridge;{ AttrVal("DEVICE","readingList","") =~ m,[^/]+[/]([^/]+).*:, ? $1 : undef } +attr DEVICE stateFormat Action: action +attr DEVICE readingList BASE_TOPIC/DEV_ID:.* { json2nameValue($EVENT) } +deletereading DEVICE .* +attr DEVICE model L_14_aqara_cube + + + ########################################### # TASMOTA # The regexp must handle