Skip to content

Instantly share code, notes, and snippets.

@adwuk
adwuk / heating.py
Last active November 13, 2022 21:09
Multi-zone heating and hot water control using Home Assistant pyscript custom component
# declarations
import datetime
from collections import defaultdict
thermostat_states = defaultdict(dict)
thermostat_triggers = []
# globals - alter to suit
heating_switch = "switch.boiler_room_boiler_switch_1"
heating_schedule = "schedule.central_heating_schedule"
heating_override = "input_boolean.central_heating_override"