I have an automation that turns on my AC… here it is.
- alias: 09 - AC On
id: AC On
trigger:
platform: numeric_state
entity_id: sensor.living_room_temp_sensor_temperature
above: "71.0"
condition:
- condition: state
entity_id: climate.john_s_device
state: "off"
- condition: state
entity_id: group.all_doors
state: "off"
- condition: state
entity_id: group.all_windows
state: "off"
- condition: state
entity_id: person.john
state: "home"
action:
- service: climate.turn_on
entity_id: climate.john_s_device
- service: climate.set_fan_mode
target:
entity_id: climate.john_s_device
data:
fan_mode: "strong"
- choose:
- conditions:
- condition: template
value_template: "{{ state_attr('sun.sun', 'elevation') > 10 }}"
sequence:
- service: notify.mobile_app_sm_f926u1
data:
message: "TTS"
title: "It's hot in the house, so I'm turning the AC on."
data:
channel: alarm_stream_max
ttl: 0
priority: high
It works the problem is while the AC is running… it’ll make the announcement again. I know HA is updating so it reads what I told it to and run but how do I make a ‘check’ that if it’s running don’t run?
*** Update… I’ve added a check to see if it’s already running… I’m hoping it’s really just that simple…see 1st condition…