fix bug then create timer, timer set to 1970

This commit is contained in:
Marko Oldenburg 2019-02-19 21:18:06 +01:00
parent 86e9ac5040
commit fabd2e2fbb

View File

@ -1610,8 +1610,7 @@ sub CreateSunRiseSetShuttersTimer($$) {
"%e.%m.%Y - %H:%M", localtime($shuttersSunsetUnixtime)
)
: 'AutoShuttersControl off'
),
1
)
);
readingsBulkUpdate(
$shuttersDevHash,
@ -1621,10 +1620,9 @@ sub CreateSunRiseSetShuttersTimer($$) {
? strftime( "%e.%m.%Y - %H:%M",
localtime($shuttersSunriseUnixtime) )
: 'AutoShuttersControl off'
),
1
)
);
readingsEndUpdate( $shuttersDevHash, 1 );
readingsEndUpdate( $shuttersDevHash, 0 );
readingsBeginUpdate($hash);
readingsBulkUpdateIfChanged(