Hi there I Want to automate my ac I have door sensor and my question is if my ac is on and I open balcony door to (it turns off the ac) do something on balcony for 5 to 10 min and come in I want it to turn on automatically…
I did manage to set up new automation but thing is whenever I close the door it turns on… I was wondering if there is a way to check if ac was turned on before the door was opened so when I close the door it continues on the previous settings
Please post your current automation’s YAML. (Please donor using the </> Preformatted Text option.)
alias: Living room ac
description: “”
triggers:
- type: opened
device_id: 74f2c6bb53da34b0f6331545a9ad4c78
entity_id: e57b7ff73834806226f62108618b0178
domain: binary_sensor
trigger: device
conditions:
actions: - action: climate.turn_off
metadata: {}
data: {}
target:
device_id: cdf7bf33e79d0a21656940c240f36d4c
mode: single
Yes, add a condition to the action that the A/C is turned on. The action to turn the A/C on, when the door is closed, will only trigger if the A/C is already on.
No need to write your automation from scratch. Someone already wrote a blueprint you can use.
2 Likes