Compare commits

...

12 Commits

6 changed files with 734 additions and 481 deletions
+194 -101
View File
@@ -1,4 +1,4 @@
- id: '1729875991469'
- id: "1729875991469"
alias: BagnoOvest-save-energy
description: Thermostat will close upon window open
use_blueprint:
@@ -6,48 +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: '1736805701473'
- id: "1781536748271"
alias: Camera-Ovest-save-energy
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"
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
@@ -57,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:
@@ -97,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
@@ -132,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:
@@ -166,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:
@@ -180,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
@@ -197,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
@@ -218,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:
@@ -234,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:
@@ -247,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:
@@ -262,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:
@@ -275,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:
@@ -289,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:
@@ -306,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:
@@ -352,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
@@ -368,7 +380,7 @@
id: Xmas-light-on
- trigger: sun
event: sunrise
offset: '900'
offset: "900"
id: Xmas-light-off
conditions: []
actions:
@@ -419,21 +431,9 @@
- light.presa_smart_11
data: {}
mode: single
- id: '1769710512491'
alias: Check-Batteries
description: ''
use_blueprint:
path: Blackshome/low-battery-notifications-and-actions.yaml
input:
include_button: enable_button_trigger
button_entity: input_button.check_batteries
include_time: time_disabled
include_easy_notify: enable_easy_okay_notify
notify_device:
- 61ac46de1cc773e1b7d5faa379ee465b
- id: '1770243140821'
- id: "1770243140821"
alias: ETHW_PRO_reset
description: ''
description: ""
triggers:
- trigger: state
entity_id:
@@ -456,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
@@ -471,7 +471,7 @@
- fri
- sat
- trigger: time
at: '11:30:00'
at: "11:30:00"
id: send_nicola_message
weekday:
- mon
@@ -482,7 +482,7 @@
- sat
enabled: false
- trigger: time
at: '14:00:00'
at: "14:00:00"
id: send_nicola_message
weekday:
- mon
@@ -492,7 +492,7 @@
- fri
enabled: true
- trigger: time
at: '16:00:00'
at: "16:00:00"
id: send_nicola_message
weekday:
- mon
@@ -502,7 +502,7 @@
- fri
enabled: false
- trigger: time
at: '18:00:00'
at: "18:00:00"
id: send_nicola_message
weekday:
- mon
@@ -514,11 +514,13 @@
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 serramemti
e scorrevoli della porta finestra discussa con Mario e i due scorrevoli. '
title: Il 15 Giugno ti aspetto a montare le persiane che hai fia fatto. Ricordati
di ordinare il materiale (vedi mail qui sotto)
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:
_cafe_metadata:
@@ -537,32 +539,16 @@
title: Persiane di Tiziano
target:
- sistemser@alice.it
- id: '1771585465072'
alias: Nuova automazione
description: ''
triggers:
- trigger: tag
tag_id: fdd88606-1018-4f01-8e7a-792c87c77943
conditions: []
actions:
- action: switch.toggle
metadata: {}
target:
entity_id:
- switch.edelweiss_accesscontol_allarme_disinserito
- switch.edelweiss_accesscontol_allarme_inserito
data: {}
mode: single
- id: '1773510003619'
- id: "1773510003619"
alias: SalottoPT-save-energy
description: ''
description: ""
use_blueprint:
path: homeassistant/heat_save.yaml
input:
window_sensor: binary_sensor.salottopt_finestra_contact
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:
@@ -603,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
@@ -649,3 +635,110 @@
entity_id: switch.smart_plug_11
data: {}
mode: single
- id: "1781556554445"
alias: Start Antizanzare (SmartPlug 11) per 1 ora
description: ""
use_blueprint:
path: homeassistant/timed_switch.yaml
input:
button: input_button.start
switch_target: switch.smart_plug_11
- id: "1781788968184"
alias: Garage_door_open
description: ""
triggers:
- trigger: state
entity_id:
- binary_sensor.garage_porta_tagliafuoco_contact
from:
- "off"
to:
- "on"
id: Garage_door_open
for:
hours: 0
minutes: 30
seconds: 0
- trigger: state
entity_id:
- binary_sensor.garage_porta_tagliafuoco_contact
from:
- "on"
to:
- "off"
id: Garage_door_close
for:
hours: 0
minutes: 30
seconds: 0
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- Garage_door_open
sequence:
- action: notify.mobile_app_tiziano_iphone15pro
metadata: {}
data:
title: Porta Tagliafuoco Rimasta Aperta
target: notify.my_device
message: ""
- conditions:
- condition: trigger
id:
- Garage_door_close
sequence:
- action: notify.mobile_app_tiziano_iphone15pro
metadata: {}
data:
title: Porta Tagliafuoco e' stata chiusa
target: notify.my_device
message: ""
mode: single
- id: "1782056620495"
alias: Auto_AC_SoggiornoP1
description: ""
use_blueprint:
path: homeassistant/auto_ac_control.yaml
input:
temp_threshold: 27.0
climate_target: climate.soggiorno_1
temp_hist: 1.5
- id: "1782118235605"
alias: Auto_AC_Soggiorno
description: ""
use_blueprint:
path: homeassistant/auto_ac_control.yaml
input:
temp_threshold: 27.0
climate_target: climate.soggiorno
temp_hist: 1.5
- id: "1782579138023"
alias: Auto_AC_Mansarda
description: ""
use_blueprint:
path: homeassistant/auto_ac_control.yaml
input:
temp_threshold: 30.0
temp_hist: 2
climate_target: climate.mansarda
- id: "1782579247001"
alias: Auto_AC_Matrimoniale
description: ""
use_blueprint:
path: homeassistant/auto_ac_control.yaml
input:
temp_threshold: 26.0
climate_target: climate.matrimoniale
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
@@ -0,0 +1,108 @@
blueprint:
name: Auto AC Control
description: Auto Turn on Air Conditioning
domain: automation
author: Tiziano Trabattoni
input:
temp_threshold:
name: Temperature Threshold to switch AC on
description: This threshold is the temperature above which AC must be switched on
default: 29.0
selector:
number:
min: 25.0
max: 40.0
step: 0.5
unit_of_measurement: celsius
temp_hist:
name: Temperature Histeresys from off to on
description: This gap is difference between on and off
default: 2.0
selector:
number:
min: 1.0
max: 4.0
step: 0.5
unit_of_measurement: celsius
climate_target:
name: Termostat Control
description: Identifies the AC climate to be controlled
selector:
entity:
filter:
- domain: climate
mode: restart
variables:
target_AC: !input climate_target
target_temp: !input temp_threshold
target_hist: !input temp_hist
triggers:
- trigger: state
entity_id: !input climate_target
attribute: current_temperature
conditions: []
actions:
- choose:
# CONDITION 1: Turn AC ON & Adjust Fan
- conditions:
- 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:
entity_id: !input climate_target
data:
hvac_mode: cool
- action: climate.set_fan_mode
target:
entity_id: !input climate_target
data:
fan_mode: >-
{% 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.0 -%}
5
{% elif diff_temp >= 3.5 and diff_temp < 4.0 -%}
4
{% 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: 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.turn_off
target:
entity_id: !input climate_target
@@ -1,29 +1,30 @@
blueprint:
name: timed_switch
domain: switch
description: Activate a switch for a cerrain timeation
domain: automation
description: Activate a switch for a certain time as action
author: Tiziano Trabattoni
input:
button:
name: bt
name: Button
description: Which button will activate the switch
selector:
target:
entity:
domain: input_button
switch_target:
name: sw
name: Switch
description: Which switch will be activated
selector:
target:
entity:
domain: switch
time:
name: tim
duration:
name: Duration
description: How long the switch should remain on
default:
hours: 1
selector:
number:
min: 0
max: 300
unit_of_measurement: seconds
duration: {}
triggers:
- trigger: state
@@ -34,9 +35,11 @@ conditions: []
actions:
- action: switch.turn_on
target:
entity_id: !input switch_target
- delay: !input tim
- delay: !input duration
- action: switch.turn_off
target:
entity_id: !input switch_target
+18
View File
@@ -4,6 +4,24 @@ default_config:
# packages directory
homeassistant:
packages: !include_dir_named packages_dir
# customize temperature steps
customize:
climate.mansarda:
target_temp_step: 0.5
climate.matrimoniale:
target_temp_step: 0.5
climate.soggiorno_1:
target_temp_step: 0.5
climate.camera_est:
target_temp_step: 0.5
climate.camera_ovest:
target_temp_step: 0.5
climate.soggiorno:
target_temp_step: 0.5
climate.salotto:
target_temp_step: 0.5
climate.studio_est:
target_temp_step: 0.5
# Load frontend themes from the themes folder
frontend:
+26
View File
@@ -72,6 +72,32 @@
state_topic: monitoring/se/values
value_template: >-
{{ (value_json.hs_t | int) / 100 }}
- name: SE_status
unique_id: mon_se_status
state_topic: monitoring/se/values
value_template: >-
{{ (value_json.stat | int) }}
- name: SE_status_txt
unique_id: mon_se_status_txt
state_topic: monitoring/se/values
value_template: >-
{% if (states('sensor.se_status') | int) == 1 -%}
OFF
{% elif (states('sensor.se_status') | int) == 2 -%}
Sleep
{% elif (states('sensor.se_status') | int) == 3 -%}
Wake Up
{% elif (states('sensor.se_status') | int) == 4 -%}
Running
{% elif (states('sensor.se_status') | int) == 5 -%}
Throttled
{% elif (states('sensor.se_status') | int) == 6 -%}
Shutdown!
{% elif (states('sensor.se_status') | int) == 7 -%}
Faulty!
{% else -%}
Template Error
{% endif %}
- name: SE_Total_power
unit_of_measurement: "MW"
unique_id: mon_se_tot_p
+7 -2
View File
@@ -1,6 +1,4 @@
---
# IMPORTANT NOTE: all sensors here having templates have been migrated/fixed to HERE from other as per Deprecation of platform: Template
# Storage for Bubble Card Modules
@@ -69,3 +67,10 @@
- default_entity_id: sensor.holiday
name: Holiday
state: "{% if states.calendar.holidays_in_italy.state == 'on' %} {{ states.calendar.holidays_in_italy.attributes.message }} {% else %} none {% endif %}"
- sensor:
- unique_id: AC_total_power_kW
unit_of_measurement: kW
default_entity_id: sensor.ac_total_power_kW
name: AC Total Power
state: "{{ ((states('sensor.ac_power_monitoring_power_ab') | float(3)) / 1000) | round(3) }}"