mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
mqtt2.template: fix2 for shellydimmer
git-svn-id: https://svn.fhem.de/fhem/trunk@21780 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5846a7a768
commit
0a395a83ec
@ -2003,8 +2003,7 @@ attr DEVICE setList\
|
||||
off:noArg shellies/DEVNAME/light/0/command off\
|
||||
on:noArg shellies/DEVNAME/light/0/command on\
|
||||
pct:slider,0,1,100 shellies/DEVNAME/light/0/set {"turn": "on","brightness": $EVTPART1}\
|
||||
int(ReadingsNum($NAME,'pct',0)/10)*10-10
|
||||
dimup:noArg { my $num=int((ReadingsNum($NAME,'pct',0)+4)/10)*10+10; return qq {shellies/DEVNAME/light/0/set {"turn": "on", "brightness": $num}}; }\
|
||||
dimup:noArg { my $num=int((ReadingsNum($NAME,'pct',0)+4)/10)*10+10; return qq {shellies/DEVNAME/light/0/set {"turn": "on", "brightness": $num}}; }\
|
||||
dimdown:noArg { my $num=int((ReadingsNum($NAME,'pct',0)+7)/10)*10-10; return qq {shellies/DEVNAME/light/0/set {"turn": "on", "brightness": $num}}; }\
|
||||
x_mqttcom shellies/DEVNAME/command $EVTPART1
|
||||
deletereading -q DEVICE status_.*
|
||||
|
Loading…
x
Reference in New Issue
Block a user