From 47b261948cdaee9c61705ca88b0f07cc54b71723 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Tue, 5 Feb 2019 21:37:23 +0000 Subject: [PATCH] 10_ZWave.pm: Fix SWITCH_MULTILEVEL V4 (Forum #96848) git-svn-id: https://svn.fhem.de/fhem/trunk@18503 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 263dd6303..1a6431781 100644 --- a/fhem/FHEM/10_ZWave.pm +++ b/fhem/FHEM/10_ZWave.pm @@ -83,11 +83,12 @@ my %zwave_class = ( stop => "05" }, get => { swmStatus => "02", swmSupported=> "06" }, - parse => { "..2603(.*)"=> '($1 eq "00" ? "state:off" : + parse => { "..2603(..)"=> '($1 eq "00" ? "state:off" : ($1 eq "ff" ? "state:on" : "state:dim ".hex($1)))', "052603(..)(..)(..)" => 'sprintf("swmStatus:%s target %s '. - 'duration %s", hex($1), hex($2), ZWave_duration($3))', # V4 + 'duration %s", hex($1), hex($2), + ZWave_time2byte($hash,hex($3)))', # V4 "..260100.."=> "state:setOff", "..2601ff.."=> "state:setOn", "..260420" => "state:swmBeginUp",