[fix] - exists gegen defined
This commit is contained in:
parent
abcccefeb4
commit
33a10d3756
@ -709,7 +709,7 @@ sub WriteReadings {
|
||||
. $propertie->{name},
|
||||
($propertie->{value} eq '') ? RigReadingsValue( $hash, 'n/a') : RigReadingsValue( $hash, $propertie->{value} )
|
||||
)
|
||||
if ( exists( $propertie->{value} ) # defined ignored 'value':null
|
||||
if ( defined( $propertie->{value} )
|
||||
&& $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
. $propertie->{name} ne 'radio-quality'
|
||||
&& $decode_json->{abilities}[$abilities]{name} . '-'
|
||||
@ -904,7 +904,7 @@ sub WriteReadings {
|
||||
$decode_json->{settings}[$settings]{value} );
|
||||
# CommandAttr( undef, $name . " scheduling-scheduled_watering_next_start_") if ($decode_json->{settings}[$settings]{value} eq '' )
|
||||
}
|
||||
|
||||
#TODO: Readings und Setter ?!
|
||||
# save electronid pressure pump settings as readings
|
||||
if ( $decode_json->{settings}[$settings]{name} eq 'operating_mode'
|
||||
|| $decode_json->{settings}[$settings]{name} eq 'leakage_detection'
|
||||
|
@ -1,2 +1,2 @@
|
||||
UPD 2022-07-12_20:03:00 49634 FHEM/73_GardenaSmartBridge.pm
|
||||
UPD 2022-07-20_12:15:45 73554 FHEM/74_GardenaSmartDevice.pm
|
||||
UPD 2022-07-21_19:43:48 49634 FHEM/73_GardenaSmartBridge.pm
|
||||
UPD 2022-07-22_21:07:48 73554 FHEM/74_GardenaSmartDevice.pm
|
||||
|
Loading…
x
Reference in New Issue
Block a user