mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-08 05:15:10 +00:00
mqtt2.template: change userReadings for state in shellydw
git-svn-id: https://svn.fhem.de/fhem/trunk@21971 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c29490b974
commit
ebe0358151
@ -1958,7 +1958,7 @@ attr DEVICE readingList shellies/DEVNAME/online:.* online\
|
||||
shellies/announce:.* { $EVENT =~ m,..id...DEVNAME...mac.*, ? json2nameValue($EVENT) : return }
|
||||
attr DEVICE setList x_update:noArg shellies/DEVNAME/command update_fw\
|
||||
x_mqttcom shellies/DEVNAME/command $EVTPART1
|
||||
attr DEVICE userReadings state:(doorWindow|tilt).* { ReadingsVal($name,"doorWindow","") eq "close" ? 'closed' : ReadingsNum($name,"tilt","") ? 'tilted' :'open' }
|
||||
attr DEVICE userReadings state:(doorWindow|tilt).* { ReadingsVal($name,"doorWindow","") eq "close" ? 'closed' : ReadingsNum($name,"tilt",1) > 0 ? 'tilted' :'open' }
|
||||
attr DEVICE model shellydw
|
||||
|
||||
#shelly2rgbw
|
||||
|
Loading…
x
Reference in New Issue
Block a user