Designing Multi-Room Sensor/Thermostat Automation

I’m in the process of migrating from SmartThings, and I really like what I’ve seen with Home Assistant so far. I’m hoping someone might be able to guide me on how to get started reproducing my current thermostat controls.

My existing setup is pretty complicated. It uses temperature sensors in multiple rooms, presence sensors in some of those rooms, and a user-friendly “target temperature tile” for UI. A SmartApp watches for changes to any of those inputs, combines the values from temperature sensors (via min, max or ave) in rooms where someone is present, and adjusts the set point on the thermostat.

I’ve tried to diagram my SmartThings setup:

+-Temp Sensor 1-----+
| +-Temp Sensor 2-----+           +-Temp Controller-+    +-Thermostat-----+
+-|  +-Temp Sensor 3----+         |  (smartapp)     |    | (device, CT100)|
  +--|   (device)       |--+      |                 |    |                |
     +------------------+  |      | Calc "current   |    |                |
                           +----->|  temp" by comb. | +->|                |
+-Presence Sensor 1---+    |      |  sensors with   | |  |                |
| +-Presence Sensor 2---+  | +--->|  min/max/ave    | |  |                |
+-|     (device)        |--+ |    |  with optional  | |  |                |
  +---------------------+    |    |  in room pres.  | |  |                |
                             | +--|  sensor         | |  +----------------+
+-Target Temp Tile------+    | |  |                 | |
| (device, virtual)     |    | |  | Update target   |-+
|                       |    | |  |  temp on Therm. |
| User controls:        |    | |  |                 |
| - set target temp     |----+ |  +-----------------+
| - set combining       |      |
|   function (min/max/  |      |
|   ave)                |      |
|                       |      |
| Display:              |      |
| - current temp        |<-----+
+-----------------------+

I’m guessing an HA setup would look like:

  1. Temp and Presence Sensors publish to MQTT
  2. A input_slider for UI to set target temp
  3. Automation magic implementing the logic (maybe using min_max sensors)
  4. Z-Wave Climate control interacting with the thermostat

Can the logic be accomplished with just automation rules? Any existing solutions for the UI? Thanks for your suggestions!

1 Like

Working already for some time on the same idea were I would like to measure the temperature in the living room and the sleeping room. The living room has floor heating with a separate pump and is only running for 5 min every 2h when no heating is required and the outside temperature is above 5 deg C (From internet)

What I would like to add is a week schedule UI but have no idea how to develop this.

  • alias: ‘Switch Floor heating on after 2h running’
    trigger:
    platform : state
    entity_id: switch.sonoff_vloer
    from: ‘on’
    to: ‘off’
    condition:
    condition: numeric_state
    entity_id: sensor.yr_temperature
    above : 6.0
    action:
    service: homeassistant.turn_on
    entity_id: script.vloer_switch_timeout1

  • alias: ‘Switch Floor heating off after 5min running’
    trigger:
    platform : state
    entity_id: switch.sonoff_vloer
    from: ‘off’
    to: ‘on’
    condition:
    condition: numeric_state
    entity_id: sensor.yr_temperature
    above : 6.0
    action:
    service: homeassistant.turn_on
    entity_id: script.vloer_switch_timeout2

  • alias: ‘Switch Floor heating on when cold outside’
    trigger:
    platform : numeric_state
    entity_id: sensor.yr_temperature
    below : 6.0
    action:
    service: switch.turn_on
    entity_id: switch.sonoff_vloer

  • alias: ‘Switch Floor heating off when not cold outside’
    trigger:
    platform : numeric_state
    entity_id: sensor.yr_temperature
    above : 6.0
    condition:
    condition: state
    entity_id: switch.sonoff_vloer
    state: ‘on’
    for:
    minutes: 121
    action:
    service: switch.turn_off
    entity_id: switch.sonoff_vloer

Any update on this?