Compare commits
2 Commits
b76d01d8c6
...
9a442a5ee9
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a442a5ee9 | |||
| a1173d3a4f |
+114
-100
@@ -1,4 +1,4 @@
|
||||
- id: '1729875991469'
|
||||
- id: "1729875991469"
|
||||
alias: BagnoOvest-save-energy
|
||||
description: Thermostat will close upon window open
|
||||
use_blueprint:
|
||||
@@ -6,57 +6,58 @@
|
||||
input:
|
||||
window_sensor: binary_sensor.bagnoovest_finestra_contact
|
||||
climate_target: climate.bagnoovest_termosifone
|
||||
- id: '1729887529602'
|
||||
- id: "1729887529602"
|
||||
alias: BagnoPT-save-energy
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/heat_save.yaml
|
||||
input:
|
||||
window_sensor: binary_sensor.bagnopt_finestra_contact
|
||||
climate_target: climate.bagnopt_termosifone
|
||||
ext_temp_limit: 17
|
||||
- id: '1729887632269'
|
||||
- id: "1729887632269"
|
||||
alias: SoggiornoPT-save-energy
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/heat_save.yaml
|
||||
input:
|
||||
window_sensor: binary_sensor.soggiornopt_finestrasud_contact
|
||||
climate_target: climate.soggiornopt_termosifonesud
|
||||
ext_temp_limit: 17
|
||||
- id: '1781536748271'
|
||||
- id: "1781536748271"
|
||||
alias: Camera-Ovest-save-energy
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/heat_save.yaml
|
||||
input:
|
||||
window_sensor: binary_sensor.cameraovest_finestra_contact
|
||||
climate_target: climate.cameraovest_termosifone
|
||||
ext_temp_limit: 17
|
||||
- id: '1736805701473'
|
||||
- id: "1736805701473"
|
||||
alias: P1confort-light
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/confort_light.yaml
|
||||
input:
|
||||
light_target:
|
||||
device_id: e0397b54f1c2d1514be403e2996ca368
|
||||
- id: '1738426726761'
|
||||
- id: "1738426726761"
|
||||
alias: Test-Pulsante01
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/button_action.yaml
|
||||
input:
|
||||
light_target:
|
||||
entity_id: light.test_lamp1
|
||||
- id: '1739393696392'
|
||||
- id: "1739393696392"
|
||||
alias: Power-load-high
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/power-load-high.yaml
|
||||
- id: '1740247429602'
|
||||
- id: "1740247429602"
|
||||
alias: EVcharge-process
|
||||
description: Manage charge of 2 cars sequentially via 2 controlled plugs (requires
|
||||
description:
|
||||
Manage charge of 2 cars sequentially via 2 controlled plugs (requires
|
||||
power and energy entities)
|
||||
use_blueprint:
|
||||
path: homeassistant/evcharge-process.yaml
|
||||
@@ -66,14 +67,14 @@
|
||||
use_entity1: input_boolean.evcharge_front_request
|
||||
use_entity2: input_boolean.evcharge_back_request
|
||||
start_button: input_button.evcharge_start
|
||||
- id: '1740332596550'
|
||||
- id: "1740332596550"
|
||||
alias: test-email
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/test_macro.yaml
|
||||
- id: '1753031203413'
|
||||
- id: "1753031203413"
|
||||
alias: Apri-Cancelletto
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
@@ -106,14 +107,14 @@
|
||||
target:
|
||||
device_id: 4a76297a493304816b1084c6979f4801
|
||||
mode: single
|
||||
- id: '1753371588861'
|
||||
- id: "1753371588861"
|
||||
alias: Cancelletto Alert
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.cancelletto_visitor
|
||||
to: 'on'
|
||||
to: "on"
|
||||
conditions: []
|
||||
actions:
|
||||
- device_id: 61ac46de1cc773e1b7d5faa379ee465b
|
||||
@@ -141,16 +142,16 @@
|
||||
message: Qualcuno ha suonato al Cancelletto usa Home Assistant
|
||||
enabled: false
|
||||
mode: single
|
||||
- id: '1757599657040'
|
||||
- id: "1757599657040"
|
||||
alias: Luce-Giardino
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: sun
|
||||
event: sunset
|
||||
offset: '1500'
|
||||
offset: "1500"
|
||||
id: giardino-on
|
||||
- trigger: time
|
||||
at: '22:00:00'
|
||||
at: "22:00:00"
|
||||
id: giardino-off
|
||||
conditions: []
|
||||
actions:
|
||||
@@ -175,9 +176,9 @@
|
||||
target:
|
||||
device_id: 52db33441371f13f0f217a2e66668a2c
|
||||
mode: single
|
||||
- id: '1757871524695'
|
||||
- id: "1757871524695"
|
||||
alias: EVcharge_process_PRO
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/evcharge_process_pro.yaml
|
||||
input:
|
||||
@@ -189,9 +190,9 @@
|
||||
charged_entity1: input_number.evcharge_front_charged
|
||||
charged_entity2: input_number.evcharge_back_charged
|
||||
stop_button: input_button.evcharge_pro_stop
|
||||
- id: '1758560143754'
|
||||
- id: "1758560143754"
|
||||
alias: Cancelletto-on
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- type: turned_on
|
||||
device_id: 3c1785ee92ef67b2536571f4e318db84
|
||||
@@ -206,9 +207,9 @@
|
||||
target:
|
||||
entity_id: input_boolean.cancelletto_video_duration
|
||||
mode: single
|
||||
- id: '1758560334981'
|
||||
- id: "1758560334981"
|
||||
alias: Cancelletto-off
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- type: turned_off
|
||||
device_id: 3c1785ee92ef67b2536571f4e318db84
|
||||
@@ -227,9 +228,9 @@
|
||||
target:
|
||||
entity_id: input_boolean.cancelletto_video_duration
|
||||
mode: single
|
||||
- id: '1759608901579'
|
||||
- id: "1759608901579"
|
||||
alias: Luce-Manuale-Salotto
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
@@ -243,9 +244,9 @@
|
||||
target:
|
||||
entity_id: light.luce_salotto
|
||||
mode: single
|
||||
- id: '1763497184744'
|
||||
- id: "1763497184744"
|
||||
alias: ETcontroller_pub_setFixHPlimit
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
@@ -256,10 +257,11 @@
|
||||
metadata: {}
|
||||
data_template:
|
||||
topic: etcontroller/sw/commands
|
||||
payload: "{\"cmd\": \"setFixHPlimit\", \"params\": {\n \"level\": \"{{states('input_select.fix_hp_power')}}\",\n
|
||||
payload:
|
||||
"{\"cmd\": \"setFixHPlimit\", \"params\": {\n \"level\": \"{{states('input_select.fix_hp_power')}}\",\n
|
||||
\ \"duration\": {{states('input_number.fix_hp_power_duration')}} }}"
|
||||
mode: single
|
||||
- id: '1774178169206'
|
||||
- id: "1774178169206"
|
||||
alias: Luce Automatica Scala-Mansarda
|
||||
description: Motion light PRO dual
|
||||
use_blueprint:
|
||||
@@ -271,7 +273,7 @@
|
||||
entity_id: light.luce_scala_mansarda
|
||||
no_motion_wait: 40
|
||||
use_sun: true
|
||||
- id: '1774178649402'
|
||||
- id: "1774178649402"
|
||||
alias: Luce Automatica Scala-Taverna
|
||||
description: Motion light PRO dual per Scala Taverna
|
||||
use_blueprint:
|
||||
@@ -284,7 +286,7 @@
|
||||
no_motion_wait: 40
|
||||
use_sun: false
|
||||
dont_disturb: false
|
||||
- id: '1774187260983'
|
||||
- id: "1774187260983"
|
||||
alias: Luce Automatica Taverna-Garage
|
||||
description: Motion light PRO dual per Luce Taverna-Garage
|
||||
use_blueprint:
|
||||
@@ -298,13 +300,14 @@
|
||||
use_sun: false
|
||||
dont_disturb: false
|
||||
no_motion_wait: 60
|
||||
- id: '1764007463105'
|
||||
- id: "1764007463105"
|
||||
alias: ETcontroller_fix_limit_copy
|
||||
description: 'This Automation allows to copy status from MQTT read HP Fix Limit
|
||||
description:
|
||||
"This Automation allows to copy status from MQTT read HP Fix Limit
|
||||
set by ETcontroller.py to internal input_select.fix_hp_power in order to align.
|
||||
dashboards when fix_hp_limit expires
|
||||
|
||||
'
|
||||
"
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
@@ -315,27 +318,27 @@
|
||||
target:
|
||||
entity_id: input_select.fix_hp_power
|
||||
data_template:
|
||||
option: '{{ states(''sensor.fix_hp_level_read'') }}'
|
||||
option: "{{ states('sensor.fix_hp_level_read') }}"
|
||||
mode: single
|
||||
- id: '1774188925405'
|
||||
- id: "1774188925405"
|
||||
alias: Luce Automatica Garage
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.presenza_garage_occupancy
|
||||
from:
|
||||
- 'off'
|
||||
- "off"
|
||||
to:
|
||||
- 'on'
|
||||
- "on"
|
||||
id: garage_on
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.presenza_garage_occupancy
|
||||
from:
|
||||
- 'on'
|
||||
- "on"
|
||||
to:
|
||||
- 'off'
|
||||
- "off"
|
||||
id: garage_off
|
||||
conditions: []
|
||||
actions:
|
||||
@@ -361,13 +364,13 @@
|
||||
entity_id: light.luce_garage
|
||||
data: {}
|
||||
mode: single
|
||||
- id: '1765575450095'
|
||||
- id: "1765575450095"
|
||||
alias: Xmas-light-mgmt
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: sun
|
||||
event: sunset
|
||||
offset: '-900'
|
||||
offset: "-900"
|
||||
id: Xmas-light-on
|
||||
- trigger: time
|
||||
at: 01:00:00
|
||||
@@ -377,7 +380,7 @@
|
||||
id: Xmas-light-on
|
||||
- trigger: sun
|
||||
event: sunrise
|
||||
offset: '900'
|
||||
offset: "900"
|
||||
id: Xmas-light-off
|
||||
conditions: []
|
||||
actions:
|
||||
@@ -428,9 +431,9 @@
|
||||
- light.presa_smart_11
|
||||
data: {}
|
||||
mode: single
|
||||
- id: '1770243140821'
|
||||
- id: "1770243140821"
|
||||
alias: ETHW_PRO_reset
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
@@ -453,9 +456,9 @@
|
||||
device_id: 83fcb9d6fe7420d69f1b4cb63adfddae
|
||||
data: {}
|
||||
mode: single
|
||||
- id: '1770846621388'
|
||||
- id: "1770846621388"
|
||||
alias: Nicola_send_message
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: 08:30:00
|
||||
@@ -468,7 +471,7 @@
|
||||
- fri
|
||||
- sat
|
||||
- trigger: time
|
||||
at: '11:30:00'
|
||||
at: "11:30:00"
|
||||
id: send_nicola_message
|
||||
weekday:
|
||||
- mon
|
||||
@@ -479,7 +482,7 @@
|
||||
- sat
|
||||
enabled: false
|
||||
- trigger: time
|
||||
at: '14:00:00'
|
||||
at: "14:00:00"
|
||||
id: send_nicola_message
|
||||
weekday:
|
||||
- mon
|
||||
@@ -489,7 +492,7 @@
|
||||
- fri
|
||||
enabled: true
|
||||
- trigger: time
|
||||
at: '16:00:00'
|
||||
at: "16:00:00"
|
||||
id: send_nicola_message
|
||||
weekday:
|
||||
- mon
|
||||
@@ -499,7 +502,7 @@
|
||||
- fri
|
||||
enabled: false
|
||||
- trigger: time
|
||||
at: '18:00:00'
|
||||
at: "18:00:00"
|
||||
id: send_nicola_message
|
||||
weekday:
|
||||
- mon
|
||||
@@ -511,10 +514,12 @@
|
||||
actions:
|
||||
- action: notify.tiziano_trabattoni_gmail_com
|
||||
data:
|
||||
target: '{{ recipient_persiane_list_gmail[''target''] }}'
|
||||
message: 'Ricordati di ordinare il materiale pwr il terzo lotto incluse serramenti
|
||||
e scorrevoli della porta finestra discussa con Mario. '
|
||||
title: l'8 luglio Mercoledi prossimo ti aspetto a montare le persiane che hai
|
||||
target: "{{ recipient_persiane_list_gmail['target'] }}"
|
||||
message:
|
||||
"Ricordati di ordinare il materiale pwr il terzo lotto incluse serramenti
|
||||
e scorrevoli della porta finestra discussa con Mario. "
|
||||
title:
|
||||
l'8 luglio Mercoledi prossimo ti aspetto a montare le persiane che hai
|
||||
gia fatto. Ricordati di ordinare il materiale (vedi mail qui sotto)
|
||||
mode: single
|
||||
variables:
|
||||
@@ -534,16 +539,16 @@
|
||||
title: Persiane di Tiziano
|
||||
target:
|
||||
- sistemser@alice.it
|
||||
- id: '1773510003619'
|
||||
- id: "1773510003619"
|
||||
alias: SalottoPT-save-energy
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/heat_save.yaml
|
||||
input:
|
||||
window_sensor: binary_sensor.salottopt_finestrapiccola_contact
|
||||
climate_target: climate.salottopt_termosifone
|
||||
ext_temp_limit: 17
|
||||
- id: '1773787966184'
|
||||
- id: "1773787966184"
|
||||
alias: SE_fan_automation
|
||||
description: Manages fan under Solaredge Inverter
|
||||
triggers:
|
||||
@@ -584,18 +589,18 @@
|
||||
entity_id: 361d8b711623afed18b3e9397bdae647
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: '1779547552608'
|
||||
- id: "1779547552608"
|
||||
alias: Antizanzare_Piano_Primo
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: time
|
||||
at: '18:00:00'
|
||||
at: "18:00:00"
|
||||
id: Antizanz_on
|
||||
- trigger: time
|
||||
at: 05:00:00
|
||||
id: Antizanz_on
|
||||
- trigger: time
|
||||
at: '23:30:00'
|
||||
at: "23:30:00"
|
||||
id: Antizanz_off
|
||||
- trigger: time
|
||||
at: 08:30:00
|
||||
@@ -630,41 +635,41 @@
|
||||
entity_id: switch.smart_plug_11
|
||||
data: {}
|
||||
mode: single
|
||||
- id: '1781556554445'
|
||||
- id: "1781556554445"
|
||||
alias: Start Antizanzare (SmartPlug 11) per 1 ora
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/timed_switch.yaml
|
||||
input:
|
||||
button: input_button.start
|
||||
switch_target: switch.smart_plug_11
|
||||
- id: '1781788968184'
|
||||
- id: "1781788968184"
|
||||
alias: Garage_door_open
|
||||
description: ''
|
||||
description: ""
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.garage_porta_tagliafuoco_contact
|
||||
from:
|
||||
- 'off'
|
||||
- "off"
|
||||
to:
|
||||
- 'on'
|
||||
- "on"
|
||||
id: Garage_door_open
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 3
|
||||
minutes: 30
|
||||
seconds: 0
|
||||
- trigger: state
|
||||
entity_id:
|
||||
- binary_sensor.garage_porta_tagliafuoco_contact
|
||||
from:
|
||||
- 'on'
|
||||
- "on"
|
||||
to:
|
||||
- 'off'
|
||||
- "off"
|
||||
id: Garage_door_close
|
||||
for:
|
||||
hours: 0
|
||||
minutes: 3
|
||||
minutes: 30
|
||||
seconds: 0
|
||||
conditions: []
|
||||
actions:
|
||||
@@ -679,7 +684,7 @@
|
||||
data:
|
||||
title: Porta Tagliafuoco Rimasta Aperta
|
||||
target: notify.my_device
|
||||
message: ''
|
||||
message: ""
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id:
|
||||
@@ -690,41 +695,50 @@
|
||||
data:
|
||||
title: Porta Tagliafuoco e' stata chiusa
|
||||
target: notify.my_device
|
||||
message: ''
|
||||
message: ""
|
||||
mode: single
|
||||
- id: '1782056620495'
|
||||
- id: "1782056620495"
|
||||
alias: Auto_AC_SoggiornoP1
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_ac_control.yaml
|
||||
input:
|
||||
temp_threshold: 27
|
||||
temp_threshold: 27.0
|
||||
climate_target: climate.soggiorno_1
|
||||
temp_hist: 1
|
||||
- id: '1782118235605'
|
||||
temp_hist: 1.5
|
||||
- id: "1782118235605"
|
||||
alias: Auto_AC_Soggiorno
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_ac_control.yaml
|
||||
input:
|
||||
temp_threshold: 26
|
||||
temp_threshold: 27.0
|
||||
climate_target: climate.soggiorno
|
||||
temp_hist: 1
|
||||
- id: '1782579138023'
|
||||
temp_hist: 1.5
|
||||
- id: "1782579138023"
|
||||
alias: Auto_AC_Mansarda
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_ac_control.yaml
|
||||
input:
|
||||
temp_threshold: 26
|
||||
temp_threshold: 30.0
|
||||
temp_hist: 2
|
||||
climate_target: climate.mansarda
|
||||
- id: '1782579247001'
|
||||
- id: "1782579247001"
|
||||
alias: Auto_AC_Matrimoniale
|
||||
description: ''
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_ac_control.yaml
|
||||
input:
|
||||
temp_threshold: 27
|
||||
temp_threshold: 26.0
|
||||
climate_target: climate.matrimoniale
|
||||
temp_hist: 1
|
||||
temp_hist: 1.5
|
||||
- id: "1783084867597"
|
||||
alias: Auto_AC_Salotto
|
||||
description: ""
|
||||
use_blueprint:
|
||||
path: homeassistant/auto_ac_control.yaml
|
||||
input:
|
||||
temp_threshold: 27.5
|
||||
temp_hist: 1.5
|
||||
climate_target: climate.salotto
|
||||
|
||||
@@ -7,21 +7,23 @@ blueprint:
|
||||
temp_threshold:
|
||||
name: Temperature Threshold to switch AC on
|
||||
description: This threshold is the temperature above which AC must be switched on
|
||||
default: 29
|
||||
default: 29.0
|
||||
selector:
|
||||
number:
|
||||
min: 25
|
||||
max: 40
|
||||
min: 25.0
|
||||
max: 40.0
|
||||
step: 0.5
|
||||
unit_of_measurement: celsius
|
||||
|
||||
temp_hist:
|
||||
name: Temperature Threshold to switch AC on
|
||||
name: Temperature Histeresys from off to on
|
||||
description: This gap is difference between on and off
|
||||
default: 2
|
||||
default: 2.0
|
||||
selector:
|
||||
number:
|
||||
min: 1
|
||||
max: 3
|
||||
min: 1.0
|
||||
max: 4.0
|
||||
step: 0.5
|
||||
unit_of_measurement: celsius
|
||||
|
||||
climate_target:
|
||||
@@ -34,45 +36,38 @@ blueprint:
|
||||
|
||||
mode: restart
|
||||
|
||||
# Calcoliamo matematicamente i valori statici qui per i trigger nativi
|
||||
trigger_variables:
|
||||
target_temp: !input temp_threshold
|
||||
target_hist: !input temp_hist
|
||||
# Calcolo automatico della soglia di spegnimento (es. 29 - 2 = 27)
|
||||
soglia_off: "{{ ( ( target_temp | float(0) ) - ( target_hist | float(0) ) ) | default(27.0) }}"
|
||||
|
||||
# Questa variabile serve SOLO per semplificare il codice dentro le azioni (actions)
|
||||
variables:
|
||||
target_AC: !input climate_target
|
||||
target_temp: !input temp_threshold
|
||||
target_hist: !input temp_hist
|
||||
|
||||
triggers:
|
||||
# Si attiva IMMEDIATAMENTE se la temperatura sale sopra la soglia (o se abbassi la soglia sotto la temperatura attuale)
|
||||
- trigger: numeric_state
|
||||
- trigger: state
|
||||
entity_id: !input climate_target
|
||||
attribute: current_temperature
|
||||
above: !input temp_threshold
|
||||
id: AC_on
|
||||
|
||||
# Si attiva IMMEDIATAMENTE se la temperatura scende sotto la soglia meno l'isteresi
|
||||
# AC_off: Risolve il problema del "none" calcolando l'isteresi con valori di ripiego sicuri per il reload YAML.
|
||||
- trigger: template
|
||||
value_template: >-
|
||||
{% set entity = '!input climate_target' %}
|
||||
{% set current = state_attr(entity, 'current_temperature') | float(0) %}
|
||||
{% set t_temp = target_temp | float(29.0) %}
|
||||
{% set t_hist = target_hist | float(2.0) %}
|
||||
{% set calcolo_soglia_off = t_temp - t_hist %}
|
||||
{{ current < calcolo_soglia_off and current > 0 }}
|
||||
id: AC_off
|
||||
|
||||
conditions: []
|
||||
|
||||
actions:
|
||||
- choose:
|
||||
# CONDITION 1: Turn AC ON & Adjust Fan
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id:
|
||||
- AC_on
|
||||
- condition: template
|
||||
value_template: "{{ state_attr(target_AC, 'current_temperature') | float(0) >= target_temp }}"
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: !input climate_target
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: !input climate_target
|
||||
state: "heat_cool"
|
||||
- condition: state
|
||||
entity_id: !input climate_target
|
||||
state: "dry"
|
||||
- condition: state
|
||||
entity_id: !input climate_target
|
||||
state: "fan_only"
|
||||
sequence:
|
||||
- action: climate.set_hvac_mode
|
||||
target:
|
||||
@@ -87,27 +82,27 @@ actions:
|
||||
{% set curr_temp = state_attr(target_AC, 'current_temperature') | float(0) -%}
|
||||
{% set targ_temp = state_attr(target_AC, 'temperature') | float(0) -%}
|
||||
{% set diff_temp = curr_temp - targ_temp -%}
|
||||
{% if diff_temp >= 4 -%}
|
||||
{% if diff_temp >= 4.0 -%}
|
||||
5
|
||||
{% elif diff_temp >= 3 and diff_temp < 4 -%}
|
||||
{% elif diff_temp >= 3.5 and diff_temp < 4.0 -%}
|
||||
4
|
||||
{% elif diff_temp >= 2 and diff_temp < 3 -%}
|
||||
{% elif diff_temp >= 3.0 and diff_temp < 3.5 -%}
|
||||
3
|
||||
{% elif diff_temp >= 1.5 and diff_temp < 3.0 -%}
|
||||
2
|
||||
{% else -%}
|
||||
Auto
|
||||
{% endif %}
|
||||
|
||||
# CONDITION 2: Turn AC OFF (Hysteresis)
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id:
|
||||
- AC_off
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ state_attr(target_AC, 'current_temperature') | float(0) <= (target_temp | float(0) - target_hist | Float(0)) }}
|
||||
- condition: state
|
||||
entity_id: !input climate_target
|
||||
state: "cool"
|
||||
sequence:
|
||||
- action: climate.set_hvac_mode
|
||||
- action: climate.turn_off
|
||||
target:
|
||||
entity_id: !input climate_target
|
||||
data:
|
||||
hvac_mode: "off"
|
||||
- action: climate.set_fan_mode
|
||||
target:
|
||||
entity_id: !input climate_target
|
||||
data:
|
||||
fan_mode: Auto
|
||||
|
||||
Reference in New Issue
Block a user