diff --git a/fhem/FHEM/89_VCONTROL.pm b/fhem/FHEM/89_VCONTROL.pm index 11c77975d..9edfbde1b 100644 --- a/fhem/FHEM/89_VCONTROL.pm +++ b/fhem/FHEM/89_VCONTROL.pm @@ -1327,7 +1327,7 @@ sub VCONTROL_TimerConv($$){ {return "";} } - if ( $timerhour < "00" || $timerhour > "23" ){ + if ( $timerhour < "00" || $timerhour > "24" ){ {return "";} } @@ -1336,7 +1336,7 @@ sub VCONTROL_TimerConv($$){ } my $helpvalue = (($timerhour <<3) + ($timermin/10)) & 0xff; - push(@hextimerdata, (sprintf "%X", $helpvalue)); + push(@hextimerdata, (sprintf "%02X", $helpvalue)); } }