Hey guys, i’ve got this automation for my AC and for some reason it does not work. So far i can’t seem to find a way of making it work. Can one of you please take a look for me.
automation:
- id: thermostat_turn_on
alias: 'House AC night on'
hide_entity: false
initial_state: 'on'
trigger:
- platform: numeric_state
entity_id: sensor.house_temp
above: 78
condition:
condition: and
conditions:
- condition: state
entity_id: group.ha_presence
state: 'home'
- condition: state
entity_id: group.doors_sensors
state: 'off'
- condition: state
entity_id: group.windows_sensors
state: 'off'
action:
- service: climate.turn_on
entity_id: climate.family_room_thermostat
- service: climate.set_hvac_mode
data:
entity_id: climate.family_room_thermostat
hvac_mode: cool
- service: climate.set_temperature
data:
entity_id: climate.family_room_thermostat
temperature: 78
hvac_action: cool
sensor:
- platform: template
sensors:
house_temp:
friendly_name: 'House temperature'
unit_of_measurement: '°F'
entity_id: climate.family_room_thermostat
device_class: temperature
value_template: "{{ state_attr('climate.family_room_thermostat', 'current_temperature') }}"