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