#Trying to setup a basic timed thermostat adjustments

1 messages · Page 1 of 1 (latest)

violet smelt
#

Hi There

I have a home assistant setup with a couple temperature sensors and relay outputs to my heating system to turn the heating on.

The temperature sensors and outputs for a thermostat in the configuration section as below

climate:

  • platform: generic_thermostat
    name: upstairs_thermostat
    heater: switch.heating_upstairs
    target_sensor: sensor.master_bedroom_thermometer_temperature
    unique_id: upstairs_thermostat
    min_temp: 5
    max_temp: 25
    ac_mode: false
    target_temp: 10
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
    minutes: 5
    initial_hvac_mode: "heat"
    away_temp: 10
    home_temp: 20
    sleep_temp: 15
    precision: 0.1

  • platform: generic_thermostat
    name: downstairs_thermostat
    heater: switch.heating_downstairs
    target_sensor: sensor.living_room_thermometer_temperature
    unique_id: downstairs_thermostat
    min_temp: 5
    max_temp: 25
    ac_mode: false
    target_temp: 10
    cold_tolerance: 0.3
    hot_tolerance: 0
    min_cycle_duration:
    minutes: 5
    initial_hvac_mode: "heat"
    away_temp: 10
    home_temp: 20
    sleep_temp: 15
    precision: 0.1

I have a helper toggle for present and absent
I want the thermostats upstairs and downstairs set to 20 degrees between 0800 and 2000 when I am present, when I am not present or I am outside these hours I want the temperature to be set to 10 degrees

#

I have the following automation but it doesnt seem to be working correctly

  • id: '1725959221498'
    alias: Thermostat Control Based on Presence and Time
    description: "Sets temp to 20°C when present and daytime, otherwise 10°C."
    trigger:

    • platform: state
      entity_id: binary_sensor.present_indicator
    • platform: time_pattern
      minutes: "/10" # Re-check every 10 minutes so it stays in sync with time window

    condition: []

    action:

    • choose:

      CASE 1 — Presence ON and between 08:00–20:00

      • conditions:
        • condition: state
          entity_id: input_boolean.present_indicator
          state: "on"
        • condition: time
          after: "08:00:00"
          before: "20:00:00"
          sequence:
        • service: climate.set_temperature
          target:
          entity_id:
          - climate.upstairs_thermostat
          - climate.downstairs_thermostat
          data:
          temperature: 20

      CASE 2 — Presence OFF (any time)

      • conditions:
        • condition: state
          entity_id: input_boolean.present_indicator
          state: "off"
          sequence:
        • service: climate.set_temperature
          target:
          entity_id:
          - climate.upstair_thermostat
          - climate.downstair_thermostat
          data:
          temperature: 10

    mode: single

any chance you guys could give me some pointers?

rotund vortex
#

Is your climate set in the heating mode? Here I only see you set the temperature

violet smelt
rotund vortex
#

what is the trace log?

violet smelt
#

looks like the enntity is not correct

rotund vortex
#

Use the developer tools ->actions and send actions until your climate accepts them