1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-16 07:10:09 -07:00

add power readings to ac_config

This commit is contained in:
David 2020-01-22 00:28:53 -05:00
parent 72040db991
commit 4122d7d188
2 changed files with 12 additions and 0 deletions

View File

@ -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())

View File

@ -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."""