2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-24 21:29:21 +00:00

mqtt2.template: updated version of zigbee2mqtt_plug (toggle)

git-svn-id: https://svn.fhem.de/fhem/trunk@22723 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2020-09-03 19:52:30 +00:00
parent 746ee48774
commit f40b82c499

View File

@ -419,10 +419,11 @@ attr DEVICE readingList $\DEVICETOPIC:.* { json2nameValue($EVENT) }
attr DEVICE setList \
on:noArg $\DEVICETOPIC/set {"state":"ON"}\
off:noArg $\DEVICETOPIC/set {"state":"OFF"}\
toggle:noArg $\DEVICETOPIC/set {"state":"TOGGLE"}
attr DEVICE setStateList on off
set DEVICE attrTemplate speechcontrol_type_switch
attr DEVICE model zigbee2mqtt_plug
setreading DEVICE attrTemplateVersion 20200522 or prior
setreading DEVICE attrTemplateVersion 20200903
name:zigbee2mqtt_plug_w_energy_measuring
filter:TYPE=MQTT2_DEVICE:FILTER=CID~zigbee.*