add mower timestamp to readings

This commit is contained in:
Sebastian 2021-06-28 16:11:39 +02:00
parent 48e526a627
commit 9d3ddb088b
2 changed files with 16 additions and 2 deletions

View File

@ -654,6 +654,20 @@ sub WriteReadings {
. $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,
$decode_json->{abilities}[$abilities]{name} . '-'

View File

@ -1,2 +1,2 @@
UPD 2021-06-28_10:47:43 47009 FHEM/73_GardenaSmartBridge.pm
UPD 2021-06-09_09:52:26 55505 FHEM/74_GardenaSmartDevice.pm
UPD 2021-06-28_15:56:58 47009 FHEM/73_GardenaSmartBridge.pm
UPD 2021-06-28_16:11:26 56085 FHEM/74_GardenaSmartDevice.pm