From b4dde90ae9be5de65397effb20f9100d3d23897d Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Sat, 27 Feb 2021 15:42:17 +0100 Subject: [PATCH] add more readings --- FHEM/46_TeslaPowerwall2AC.pm | 6 ++++++ controls_TeslaPowerwall2AC.txt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) 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