From 4122d7d1883d1f1b70f54f14e41ba73046e827b6 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 22 Jan 2020 00:28:53 -0500 Subject: [PATCH] add power readings to ac_config --- example.py | 2 ++ wideq/ac.py | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/example.py b/example.py index 05d9b65..0607918 100755 --- a/example.py +++ b/example.py @@ -146,6 +146,8 @@ def ac_config(client, device_id): print(ac.get_filter_state()) print(ac.get_mfilter_state()) print(ac.get_energy_target()) + print(ac.get_inout_instant_power()) + print(ac.get_out_total_instant_power()) print(ac.get_volume()) print(ac.get_light()) print(ac.get_zones()) diff --git a/wideq/ac.py b/wideq/ac.py index a9afaf5..0a643f1 100644 --- a/wideq/ac.py +++ b/wideq/ac.py @@ -249,6 +249,16 @@ class ACDevice(Device): return self._get_config('EnergyDesiredValue') + def get_inout_instant_power(self): + """Get the instant power consumption.""" + + return self._get_config('InOutInstantPower') + + def get_out_total_instant_power(self): + """Get the OutTotalInstantPower value (not sure what that is)""" + + return self._get_config('OutTotalInstantPower') + def get_light(self): """Get a Boolean indicating whether the display light is on."""