Compare commits
3
Commits
aa3f61e204
...
defe5f87a4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
defe5f87a4 | ||
|
|
69704701c5 | ||
|
|
4fc1d7fa4e |
+571
-478
File diff suppressed because it is too large
Load Diff
@@ -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:
|
||||
|
||||
@@ -4,3 +4,5 @@
|
||||
some_password: welcome
|
||||
|
||||
mariadb_url: 'mysql://homeassistant:primolo1274@core-mariadb/homeassistant?charset=utf8mb4'
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
unit_of_measurement: kW
|
||||
default_entity_id: sensor.home_only_power
|
||||
name: Home Power without HP Pump and EVcharge
|
||||
state: "{{ (states('sensor.pw_load_power') | float) - (states('sensor.evcharge_total_power') | float) - ((states('sensor.hp_power') | float ) / 1000) }}"
|
||||
state: "{{ max(0, (states('sensor.pw_load_power') | float ) - (states('sensor.evcharge_total_power') | float) - ((states('sensor.hp_power') | float ) / 1000) - (((states('sensor.ac_power_monitoring_power_ab') | float ) / 1000) ) | round(3, 'half')) }}"
|
||||
|
||||
- sensor:
|
||||
- unique_id: ev_heat_power
|
||||
|
||||
Reference in New Issue
Block a user