Merge pull request 'patch-mower_timestamp_start' (#37) from patch-mower_timestamp_start into devel
Reviewed-on: #37 Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
This commit is contained in:
commit
5294e3fea5
@ -653,6 +653,21 @@ sub WriteReadings {
|
||||
|| $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $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(
|
||||
$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_20:08:52 56188 FHEM/74_GardenaSmartDevice.pm
|
||||
|
Loading…
x
Reference in New Issue
Block a user