[fix] - cast all propertie as string - fixed bulkupdateifchanged

This commit is contained in:
Sebastian 2022-08-07 20:20:17 +02:00
parent 0ee95be7be
commit 78b5731bbf
3 changed files with 5 additions and 5 deletions

View File

@ -1 +1 @@
[enhancement] - delete unused scheuldes from readings
[fix] - delete unused schedules

View File

@ -708,7 +708,7 @@ sub WriteReadings {
$hash,
$decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name},
(defined ($propertie->{value} ) eq '') ? RigReadingsValue( $hash, 'n/a') : RigReadingsValue( $hash, $propertie->{value} )
(defined ($propertie->{value} ) eq '') ? RigReadingsValue( $hash, 'n/a') : "".RigReadingsValue( $hash, $propertie->{value} ) # cast all data to string with ""
)
if ( exists( $propertie->{value} )
&& $decode_json->{abilities}[$abilities]{name} . '-'
@ -735,7 +735,7 @@ sub WriteReadings {
$hash,
$decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name},
RigReadingsValue( $hash, $propertie->{value} )
"".RigReadingsValue( $hash, $propertie->{value} ) # cast all data to string with ""
)
if (
defined( $propertie->{value} )
@ -762,7 +762,7 @@ sub WriteReadings {
$decode_json->{abilities}[$abilities]{name} . '-'
. $propertie->{name}
. '_timestamp',
Time::Piece->strptime(
"".Time::Piece->strptime(
RigReadingsValue( $hash, $propertie->{timestamp} ),
"%Y-%m-%d %H:%M:%S" )->strftime('%s')

View File

@ -1,2 +1,2 @@
UPD 2022-07-21_19:43:48 49634 FHEM/73_GardenaSmartBridge.pm
UPD 2022-08-06_20:17:48 107633 FHEM/74_GardenaSmartDevice.pm
UPD 2022-08-07_20:12:20 107711 FHEM/74_GardenaSmartDevice.pm