add mower timestamp to readings
This commit is contained in:
@ -653,6 +653,20 @@ sub WriteReadings {
|
||||
|| $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $propertie->{name} eq 'light-light' )
|
||||
);
|
||||
|
||||
readingsBulkUpdateIfChanged(
|
||||
$hash,
|
||||
$decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $propertie->{name}
|
||||
. '_timestamp',
|
||||
RigReadingsValue( $hash, $propertie->{timestamp} )
|
||||
)
|
||||
if (
|
||||
defined( $propertie->{value} )
|
||||
&& ( $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $propertie->{name} eq 'mower_timer-mower_timer'
|
||||
)
|
||||
|
||||
|
||||
readingsBulkUpdateIfChanged(
|
||||
$hash,
|
||||
|
Reference in New Issue
Block a user