Setting up a simple generic thermostat with two heaters and a schedule

Hi,

I’m a newbie on this whole thing, but I’ve managed to setup everything and the next step is to start getting some automations. So I have a garage with a aeotec multisensor 6 and two aeotec switches connected to two heaters. So by my understanding that should be enough.

I’d like to automate it like this:

  • One temperature meter (the multisensor 6)
  • Two switches (or heaters)
  • Sticks to one heating target during night, and another during day
  • Stretch goal: have weekly patterns where the heating changes on certain days (i.e. weekend)

The basic stuff is straightforward, except not sure how to add another heater, do I just add a “heater 2:” below the first one? Anyway, it’d look like this:

[code]climate:

  • platform: generic_thermostat
    name: Garage
    heater: switch.aeotec_zw096_smart_switch_6_switch_11_0
    heater: switch.aeotec_zw096_smart_switch_6_switch_12_0
    target_sensor: sensor.aeotec_zw100_multisensor_6_temperature_4_1
    min_temp: 15
    max_temp: 21
    target_temp: 17
    tolerance: 0.3
    min_cycle_duration:
    seconds: 5
    keep_alive:
    minutes: 3
    [/code]

But the question is how do I add schedule automation to this? I could start with trial&error but just seeing how this should be done would allow me to really take it further. Thanks for any help!

I don’t think you can add two switches to the generic thermostat. You can try adding both switches to a group and using that group as the heater switch, but I’ve never tried it so no guarantees this will work.

As to your second question - the schedule - you should use trigger time and your action should be climate.set_temperature - to increase and decrease the desired temperature.

Thanks, I’ll give it a shot!

Ok, how does this look like?

automation 2:
- alias: Set Higher Temperature in Garage after 10pm
  trigger:
    platform: time
    after: "22:00:00"
  action:
    - service: climate.set_temperature
      data:
        entity_id: climate.Garage_heating
        min_temp: 15
        max_temp: 17
        target_temp: 16
- alias: Set Lower Temperature after 5am
  trigger:
    platform: time
    after: "5:00:00"
  action:
    - service: climate.set_temperature
      data:
        entity_id: climate.Garage_heating
        min_temp: 8
        max_temp: 12
        target_temp: 10

climate Garage_heating:
  - platform: generic_thermostat
    name: Garage Climate
    heater: group.Garage_heaters
    target_sensor: sensor.aeotec_zw100_multisensor_6_temperature_4_1
    min_temp: 15
    max_temp: 17
    target_temp: 16
    tolerance: 0.3
    min_cycle_duration:
      seconds: 5
    keep_alive:
      minutes: 3

Hi,

Is this working for you? I am having issues having tried to set away mode using an automation, so was going to try this method, but wanted to see if you got it working like this first?

Thanks

I can confirm that this works! Thanks for the suggestion