From f801260dbfaf4a6dfa8f0f0ee18b3887a88c9751 Mon Sep 17 00:00:00 2001 From: Beta-User <> Date: Sun, 28 Feb 2021 09:29:19 +0000 Subject: [PATCH] mqtt2.template: small changes in shelly flood git-svn-id: https://svn.fhem.de/fhem/trunk@23847 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/lib/AttrTemplate/mqtt2.template | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/lib/AttrTemplate/mqtt2.template b/fhem/FHEM/lib/AttrTemplate/mqtt2.template index e3e356c6c..a094efc04 100644 --- a/fhem/FHEM/lib/AttrTemplate/mqtt2.template +++ b/fhem/FHEM/lib/AttrTemplate/mqtt2.template @@ -2743,16 +2743,21 @@ attr DEVICE icon ICON attr DEVICE setList \ x_update:noArg shellies/DEVNAME/command update_fw\ x_mqttcom shellies/DEVNAME/command $EVTPART1 -attr DEVICE readingList \ - shellies/DEVNAME/online:.* online\ - shellies/DEVNAME/sensor/temperature:.* temperature\ - shellies/DEVNAME/sensor/flood:.* flood\ - shellies/DEVNAME/sensor/battery:.* batteryPercent +attr DEVICE readingList shellies/DEVICE/online:.* online\ + shellies/DEVICE/announce:.* { json2nameValue($EVENT,'',$JSONMAP) }\ + shellies/DEVICE/sensor/temperature:.* temperature\ + shellies/DEVICE/sensor/flood:.* flood\ + shellies/DEVICE/sensor/battery:.* batteryPercent\ + shellies/DEVICE/sensor/error:.* error\ + shellies/DEVICE/sensor/act_reasons:.* { json2nameValue($EVENT,'',$JSONMAP) } +attr DEVICE jsonMap 1:report 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 +setreading DEVICE attrTemplateVersion 202010228 + + # shellygas using original firmware name:shellygas