Auto AC removed Manual setting overwrite (not working as expected)
This commit is contained in:
@@ -69,29 +69,29 @@ triggers:
|
|||||||
entity_id: !input climate_target
|
entity_id: !input climate_target
|
||||||
attribute: current_temperature
|
attribute: current_temperature
|
||||||
id: temp_change
|
id: temp_change
|
||||||
# Trigger instantly when someone manually changes the AC mode
|
# # Trigger instantly when someone manually changes the AC mode
|
||||||
- trigger: state
|
# - trigger: state
|
||||||
entity_id: !input climate_target
|
# entity_id: !input climate_target
|
||||||
id: state_change
|
# id: state_change
|
||||||
|
|
||||||
conditions:
|
conditions:
|
||||||
# 1. Verifica di sicurezza sullo stato dell'entità
|
# 1. Verifica di sicurezza sullo stato dell'entità
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ trigger.to_state is not none }}"
|
value_template: "{{ trigger.to_state is not none }}"
|
||||||
# 2. Se l'automazione sta già eseguendo il "delay" di override, ignora i cambi di temperatura
|
# # 2. Se l'automazione sta già eseguendo il "delay" di override, ignora i cambi di temperatura
|
||||||
- condition: template
|
# - condition: template
|
||||||
value_template: >-
|
# value_template: >-
|
||||||
{{ not (this.attributes.current == 1 and trigger.id == 'temp_change') }}
|
# {{ not (this.attributes.current == 1 and trigger.id == 'temp_change') }}
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
- choose:
|
- choose:
|
||||||
# DETECT MANUAL OVERRIDE: Triggered by state change, but context shows it was NOT the automation itself
|
# DETECT MANUAL OVERRIDE: Triggered by state change, but context shows it was NOT the automation itself
|
||||||
- conditions:
|
# - conditions:
|
||||||
- condition: template
|
# - condition: template
|
||||||
value_template: "{{ trigger.id == 'state_change' and trigger.to_state.context.id != context.id }}"
|
# value_template: "{{ trigger.id == 'state_change' and trigger.to_state.context.id != context.id }}"
|
||||||
sequence:
|
# sequence:
|
||||||
- delay:
|
# - delay:
|
||||||
hours: "{{ override_hours | int(2) }}"
|
# hours: "{{ override_hours | int(2) }}"
|
||||||
|
|
||||||
# CONDITION 1: Turn AC ON & Adjust Fan
|
# CONDITION 1: Turn AC ON & Adjust Fan
|
||||||
- conditions:
|
- conditions:
|
||||||
|
|||||||
Reference in New Issue
Block a user