From bb4dc7593a73b3875f63c818e431c8fe84ed924b Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 17 Sep 2019 06:53:16 +0000 Subject: [PATCH] 10_ZWave.pm: decode set dim commands (Forum #103769) git-svn-id: https://svn.fhem.de/fhem/trunk@20179 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/10_ZWave.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/10_ZWave.pm b/fhem/FHEM/10_ZWave.pm index 7c5b2a792..e911cd6ad 100644 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -88,8 +88,9 @@ my %zwave_class = ( "state:dim ".hex($1)))', "052603(..)(..)(..)" => 'sprintf("swmStatus:%s target %s '. 'duration %s", hex($1), hex($2), ZWave_byte2time($3))', # V4 - "..260100.."=> "state:setOff", - "..2601ff.."=> "state:setOn", + "..2601(..).."=> '($1 eq "00" ? "state:setOff" : + ($1 eq "ff" ? "state:setOn" : + "state:setDim ".hex($1)))', "..260420" => "state:swmBeginUp", "..260460" => "state:swmBeginDown", "..2604(..)(..)(..)(..)" => 'ZWave_swmParse($1,$2,$3,$4)',