change to unixtimestamp

This commit is contained in:
Sebastian 2021-06-28 20:11:18 +02:00
parent cf93bbdba6
commit 70c54892d8
2 changed files with 3 additions and 3 deletions

View File

@ -659,7 +659,8 @@ sub WriteReadings {
$decode_json->{abilities}[$abilities]{name} . '-' $decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name} . $propertie->{name}
. '_timestamp', . '_timestamp',
RigReadingsValue( $hash, $propertie->{timestamp} ) Time::Piece->strptime(RigReadingsValue( $hash, $propertie->{timestamp} ), "%Y-%m-%d %H:%M:%S")->strftime('%s')
) )
if ( if (
defined( $propertie->{value} ) defined( $propertie->{value} )
@ -668,7 +669,6 @@ sub WriteReadings {
) )
); );
readingsBulkUpdateIfChanged( readingsBulkUpdateIfChanged(
$hash, $hash,
$decode_json->{abilities}[$abilities]{name} . '-' $decode_json->{abilities}[$abilities]{name} . '-'

View File

@ -1,2 +1,2 @@
UPD 2021-06-28_15:56:58 47009 FHEM/73_GardenaSmartBridge.pm UPD 2021-06-28_15:56:58 47009 FHEM/73_GardenaSmartBridge.pm
UPD 2021-06-28_16:15:56 56104 FHEM/74_GardenaSmartDevice.pm UPD 2021-06-28_20:08:52 56188 FHEM/74_GardenaSmartDevice.pm