Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.02 KB

hotwater.rst

File metadata and controls

49 lines (29 loc) · 1.02 KB

Hot Water

Set hot water on

client.set_dhw_on() # Permanent

from datetime import datetime
client.set_dhw_on(datetime(2014,4,10,22,0,0)) # set on until 10 Apr 2014, 10pm

Set hot water off

client.set_dhw_off() # Permanent

from datetime import datetime
client.set_dhw_off(datetime(2014,4,10,22,0,0)) # set off until 10 Apr 2014, 10pm

Set hot water to auto (cancel override)

client.set_dhw_auto()

Get hot water status

client = EvohomeClient(username, password)

dhw = client.locations[0]._gateways[0]._control_systems[0].hotwater.get_dhw_state()

temp = dhw['temperatureStatus']['temperature']
status = dhw['stateStatus']['state']
mode = dhw['stateStatus']['mode']

print("temperature {}".format(temp))
print("status {}".format(status))
print("mode {}".format(mode))