[alpha] - extendetState. fix state
This commit is contained in:
@ -757,12 +757,9 @@ sub WriteReadings {
|
||||
. $propertie->{name}
|
||||
. '_irrigation_left',
|
||||
sprintf("%.f" ,
|
||||
|
||||
Time::Piece::localtime->strptime(
|
||||
RigReadingsValue(
|
||||
$hash,
|
||||
$decode_json->{abilities}[$abilities]{timestamp}),
|
||||
"%Y-%m-%d %H:%M:%S") +($propertie->{value}{duration} + 3 ) - Time::Piece::localtime->new )
|
||||
Time::Piece::localtime->strptime(
|
||||
$decode_json->{abilities}[$abilities]{timestamp}, "%Y-%m-%d %H:%M:%S")
|
||||
+ ($propertie->{value}{duration} + 3 ) - Time::Piece::localtime->new )
|
||||
)
|
||||
if ( defined( $propertie->{value} )
|
||||
&& $decode_json->{abilities}[$abilities]{name} eq 'watering'
|
||||
|
Reference in New Issue
Block a user