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 \ attr DEVICE setList \
x_update:noArg shellies/DEVNAME/command update_fw\ x_update:noArg shellies/DEVNAME/command update_fw\
x_mqttcom shellies/DEVNAME/command $EVTPART1 x_mqttcom shellies/DEVNAME/command $EVTPART1
attr DEVICE readingList \ attr DEVICE readingList shellies/DEVICE/online:.* online\
shellies/DEVNAME/online:.* online\ shellies/DEVICE/announce:.* { json2nameValue($EVENT,'',$JSONMAP) }\
shellies/DEVNAME/sensor/temperature:.* temperature\ shellies/DEVICE/sensor/temperature:.* temperature\
shellies/DEVNAME/sensor/flood:.* flood\ shellies/DEVICE/sensor/flood:.* flood\
shellies/DEVNAME/sensor/battery:.* batteryPercent 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%) attr DEVICE stateFormat flood (bat batteryPercent%)
deletereading -q DEVICE (?!associatedWith).* deletereading -q DEVICE (?!associatedWith).*
set DEVICE x_mqttcom announce set DEVICE x_mqttcom announce
attr DEVICE model shellyflood attr DEVICE model shellyflood
setreading DEVICE attrTemplateVersion 20200522 or prior setreading DEVICE attrTemplateVersion 202010228
# shellygas using original firmware # shellygas using original firmware
name:shellygas name:shellygas