This commit is contained in:
Sebastian 2022-06-23 12:15:10 +02:00
parent b3d39a6e58
commit 6ce4b352b4
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
dry run debug stuff

View File

@ -768,7 +768,7 @@ sub WriteReadings {
if ( defined( $propertie->{value} ) if ( defined( $propertie->{value} )
&& $decode_json->{abilities}[$abilities]{name} eq 'watering' && $decode_json->{abilities}[$abilities]{name} eq 'watering'
&& $propertie->{value}{duration} > 0 ){ && $propertie->{value}{duration} > 0 ){
Log3 $name, 2, "[DDebug] " . RigReadingsValue($hash, Time::Piece::localtime->strptime( $decode_json->{abilities}[$abilities]{timestamp}); Log3 $name, 2, "[DDebug] " . RigReadingsValue($hash, Time::Piece::localtime->strptime( $decode_json->{abilities}[$abilities]{timestamp}));
my $dt = RigReadingsValue($hash, Time::Piece::localtime->strptime( $decode_json->{abilities}[$abilities]{timestamp}), "%Y-%m-%d %H:%M:%S"); my $dt = RigReadingsValue($hash, Time::Piece::localtime->strptime( $decode_json->{abilities}[$abilities]{timestamp}), "%Y-%m-%d %H:%M:%S");
Log3 $name, 2, "[DEBUG] $dt"; Log3 $name, 2, "[DEBUG] $dt";
my $ndt = Time::Piece::localtime->new; my $ndt = Time::Piece::localtime->new;

View File

@ -1,2 +1,2 @@
UPD 2022-06-21_08:17:57 49520 FHEM/73_GardenaSmartBridge.pm UPD 2022-06-21_08:17:57 49520 FHEM/73_GardenaSmartBridge.pm
UPD 2022-06-23_12:14:22 71345 FHEM/74_GardenaSmartDevice.pm UPD 2022-06-23_12:15:06 71346 FHEM/74_GardenaSmartDevice.pm