patch-mower_timestamp_start #37

Merged
sebastianschwarz merged 3 commits from patch-mower_timestamp_start into devel 2021-07-16 19:20:28 +00:00
2 changed files with 17 additions and 2 deletions

View File

@ -654,6 +654,21 @@ sub WriteReadings {
. $propertie->{name} eq 'light-light' ) . $propertie->{name} eq 'light-light' )
); );
readingsBulkUpdateIfChanged(
$hash,
$decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name}
. '_timestamp',
Time::Piece->strptime(RigReadingsValue( $hash, $propertie->{timestamp} ), "%Y-%m-%d %H:%M:%S")->strftime('%s')
)
if (
defined( $propertie->{value} )
&& ( $decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name} eq 'mower_timer-mower_timer'
)
);
readingsBulkUpdateIfChanged( readingsBulkUpdateIfChanged(
$hash, $hash,
$decode_json->{abilities}[$abilities]{name} . '-' $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-28_15:56:58 47009 FHEM/73_GardenaSmartBridge.pm
UPD 2021-06-09_09:52:26 55505 FHEM/74_GardenaSmartDevice.pm UPD 2021-06-28_20:08:52 56188 FHEM/74_GardenaSmartDevice.pm