Air Conditioning automation when temperature

Hi,

I would create an automation with some conditions.
Basically the idea is to set the heater as soon as the room temperature is below 17° and power it off, in a second automation, when is above 24°.
Other condition is presence of family at home.

The main problem is that: If the family is not at home, and the room is already below 17°, the automation is not triggering when family back home, because there is no change status of the trigger.

Can someone help me to find the smartest way to do it?

The current Automation is the following:

alias: Clima salone Temp. bassa
description: Il climatizzatore nel salone si accende se fa troppo freddo
trigger:
  - platform: numeric_state
    entity_id: sensor.sala_room_temperature
    below: 16.5
condition:
  - condition: zone
    entity_id: person.xxxxx
    zone: zone.home
  - condition: time
    after: "17:00:00"
    before: "20:00:00"
    weekday:
      - sun
      - sat
      - fri
      - thu
      - wed
      - tue
      - mon
action:
  - delay:
      hours: 0
      minutes: 10
      seconds: 0
      milliseconds: 0
  - service: climate.set_temperature
    data:
      temperature: 24
      hvac_mode: heat
    target:
      device_id: 4949221879448a587d0018c8304be08f
  - service: climate.set_fan_mode
    data:
      fan_mode: "4"
    target:
      device_id: 4949221879448a587d0018c8304be08f
mode: single

Add the presence detection as a trigger, then make sure all your triggers are mirrored in the conditions. FWIW, it is often best practice to add a for variable to temperature-based triggers to avoid bouncing the hvac unit on and off if the ambient temperature is near your setpoint.

alias: Clima salone Temp. bassa
description: Il climatizzatore nel salone si accende se fa troppo freddo
trigger:
  - platform: numeric_state
    entity_id: sensor.sala_room_temperature
    below: 16.5
    for: "00:05:00"
  - platform: numeric_state
    entity_id: zone.home
    above: 0
condition:
  - condition: numeric_state
    entity_id: zone.home
    above: 0
  - condition: numeric_state
    entity_id: sensor.sala_room_temperature
    below: 16.5
  - condition: time
    after: "17:00:00"
    before: "20:00:00"
action:
  - delay:
      hours: 0
      minutes: 10
      seconds: 0
      milliseconds: 0
  - service: climate.set_temperature
    data:
      temperature: 24
      hvac_mode: heat
    target:
      device_id: 4949221879448a587d0018c8304be08f
  - service: climate.set_fan_mode
    data:
      fan_mode: "4"
    target:
      device_id: 4949221879448a587d0018c8304be08f
mode: single
1 Like

I think I have the same problem, when a person is already at home it won’t trigger…

Add two more triggers to force re-evaluation on reload or restart:

  - platform: homeassistant
    event: restart
  - platform: event
    event_type: automation_reloaded

Ciao Maruzio :slight_smile: Did you solve the problem? I have something similar