2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

mqtt2.template: small changes in shelly flood

git-svn-id: https://svn.fhem.de/fhem/trunk@23847 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Beta-User 2021-02-28 09:29:19 +00:00
parent 9f9b341557
commit f801260dbf

View File

@ -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