fix bug then create timer, timer set to 1970
This commit is contained in:
parent
86e9ac5040
commit
fabd2e2fbb
@ -1610,8 +1610,7 @@ sub CreateSunRiseSetShuttersTimer($$) {
|
|||||||
"%e.%m.%Y - %H:%M", localtime($shuttersSunsetUnixtime)
|
"%e.%m.%Y - %H:%M", localtime($shuttersSunsetUnixtime)
|
||||||
)
|
)
|
||||||
: 'AutoShuttersControl off'
|
: 'AutoShuttersControl off'
|
||||||
),
|
)
|
||||||
1
|
|
||||||
);
|
);
|
||||||
readingsBulkUpdate(
|
readingsBulkUpdate(
|
||||||
$shuttersDevHash,
|
$shuttersDevHash,
|
||||||
@ -1621,10 +1620,9 @@ sub CreateSunRiseSetShuttersTimer($$) {
|
|||||||
? strftime( "%e.%m.%Y - %H:%M",
|
? strftime( "%e.%m.%Y - %H:%M",
|
||||||
localtime($shuttersSunriseUnixtime) )
|
localtime($shuttersSunriseUnixtime) )
|
||||||
: 'AutoShuttersControl off'
|
: 'AutoShuttersControl off'
|
||||||
),
|
)
|
||||||
1
|
|
||||||
);
|
);
|
||||||
readingsEndUpdate( $shuttersDevHash, 1 );
|
readingsEndUpdate( $shuttersDevHash, 0 );
|
||||||
|
|
||||||
readingsBeginUpdate($hash);
|
readingsBeginUpdate($hash);
|
||||||
readingsBulkUpdateIfChanged(
|
readingsBulkUpdateIfChanged(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user