A smart thermostat automation for Home Assistant, designed to manage heating schedules, temperature control, and comfort levels intelligently using Node-RED and Home Assistant entities.
- 🔥 Automatic heating control based on time schedules and target temperatures
- 🕒 Weekly scheduling via
input_datetimeentities (e.g.thermostaat_maandag_start,thermostaat_maandag_eind, etc.) - 🌡️ Dynamic temperature tracking using temperature sensors (
sensor.dining_room_thermometer_temperature, etc.) - 🧠 Failsafe logic with validation and error handling for missing or invalid entities
- 💬 Detailed Node-RED status messages and warnings for debugging
The system runs in Node-RED, pulling data from Home Assistant to decide when to heat or not.
It checks the current time, compares it to your configured heating schedule, and sets the thermostat accordingly.
Example logic:
- Read current temperature (
sensor.*_thermometer_temperature) - Compare with target temperature
- Activate or deactivate heating switch (
switch.thermostaat_relais) - Display status and warnings in Node-RED debug console
- Home Assistant
- Node-RED add-on for Home Assistant
- Entities:
sensor.<room>_thermometer_temperatureswitch.thermostaat_relaisinput_datetime.thermostaat_<day>_startinput_datetime.thermostaat_<day>_eind
Example setup for Monday:
input_datetime:
thermostaat_maandag_start:
name: Maandag starttijd
has_date: false
has_time: true
thermostaat_maandag_eind:
name: Maandag eindtijd
has_date: false
has_time: true