diff --git a/FHEM/46_TeslaPowerwall2AC.pm b/FHEM/46_TeslaPowerwall2AC.pm index d6e2f10..cbbf3b4 100644 --- a/FHEM/46_TeslaPowerwall2AC.pm +++ b/FHEM/46_TeslaPowerwall2AC.pm @@ -724,6 +724,12 @@ sub ReadingsProcessing_Powerwalls { while ( my ( $r, $v ) = each %{$powerwall} ) { $readings{ 'wall_' . $i . '_' . $r } = $v; + + if ref($v) eq 'HASH' ) { + while ( my ( $s, $t ) = each %{$v} ) { + $readings{ 'wall_' . $i . '_' . $r . '_' . $s } = $t; + } + } } $i++; diff --git a/controls_TeslaPowerwall2AC.txt b/controls_TeslaPowerwall2AC.txt index ec57af1..0cd9cb0 100644 --- a/controls_TeslaPowerwall2AC.txt +++ b/controls_TeslaPowerwall2AC.txt @@ -1 +1 @@ -UPD 2021-02-27_15:27:28 30716 FHEM/46_TeslaPowerwall2AC.pm +UPD 2021-02-27_15:42:04 30955 FHEM/46_TeslaPowerwall2AC.pm