add mower timestamp to readings
This commit is contained in:
parent
48e526a627
commit
9d3ddb088b
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user