Turn Aircon on when hot

I have a Broadcom RM4 Pro.
This has a temp sensor. It also has been setup to turn on/off my aircon, which works fine as a button from home assistant.

I want an automation

  • If hotter than 24
  • Between 9am - 6pm
  • When someone home (only two of us)

The following has not triggered once, and no traces.
Have tested with lower temps, and no time window, but nothing.
I use the zone home status for some other automations that seem to work.

Do I need to include an AND in the logic or is something else not look right?

alias: Turn Aircon on when hot
description: ""
trigger: []
condition:
  - type: is_temperature
    condition: device
    device_id: b136eba57133b1168aaae74c05430306
    entity_id: sensor.rm4_pro_temperature
    domain: sensor
    above: 24
  - condition: time
    after: "09:00:00"
    before: "18:00:00"
    weekday:
      - sun
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
  - condition: numeric_state
    entity_id: zone.home
    above: 0
action:
  - service: script.turn_aircon_on
    data: {}
mode: single

It hasn’t triggered because you haven’t defined a trigger — just a condition (below this), which never gets checked.

You need to add a trigger. Maybe if the temp goes above 24º, and then have conditions check time and if anyone is home.

Of course, that would mean it would only check once and not again until temp falls below 24 and back up again. Which means that if the conditions become true after that, the aircon won’t turn on automatically.
So, maybe have multiple triggers: Temp > 24º, zone.home > 0 and check at 9am too.

rookie mistake. thanks for this. works now.
is best practice to turn it off when it reaches a threshold to setup a separate automation? Or build it into this one?

Thanks everyone

1 Like