I’ve automated my (dumb, IR remote controlled) AC to turn on in cooling mode at a specific high room temperature, in dehumidification at a specific humidity and in heating mode at a specific low temperature.
Other automations turn the AC off when their set points are reached.
I’m using a WiFi to IR bridge to do that.
My problem is that the AC-off automation seems to tell the AC every 5 to 20 minutes to turn off when it is already off. It just makes a beep every time that happens.
It’s standard remote has an on-off button, so the automations don’t mimic that exactly (you can’t turn it off twice with the remote, it just turns it back on, of course).
So how can I write the automation to only execute the “off” command just once?
Here is my yaml to switch off from cooling.:
alias: AC off
description: ""
triggers:
- trigger: state
entity_id: sensor.lounge_t_h_temperature
conditions:
- condition: numeric_state
entity_id: sensor.lounge_t_h_temperature
below: 25
actions:
- action: scene.turn_on
target:
area_id: living_room
entity_id: scene.aircon_off
data: {}
mode: single
The “entity_id: scene.aircon_off” is a Tuya “scene” for the IR bridge…
Cheers,
Joe