Compare commits

...

2 Commits

Author SHA1 Message Date
ttrabatt 40e85c10c0 Added Auto AC automation 2026-06-21 17:45:04 +02:00
ttrabatt 81df14f119 Added Solaredge Status Message 2026-06-21 16:38:18 +02:00
3 changed files with 117 additions and 0 deletions
+16
View File
@@ -741,3 +741,19 @@
data: data:
fan_mode: Auto fan_mode: Auto
mode: single mode: single
- id: '1782056533736'
alias: Auto_AC_Mansarda
description: ''
use_blueprint:
path: homeassistant/auto_ac_control.yaml
input:
temp_threshold: 28
climate_target: climate.mansarda
- id: '1782056620495'
alias: Auto_AC_SoggiornoP1
description: ''
use_blueprint:
path: homeassistant/auto_ac_control.yaml
input:
temp_threshold: 27
climate_target: climate.soggiorno_1
@@ -0,0 +1,75 @@
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
selector:
number:
min: 25
max: 40
unit_of_measurement: celsius
climate_target:
name: Termostat Control
description: Identifies the AC climate to be controlled
selector:
entity:
filter:
- domain: climate
mode: single
# Definiamo l'input come variabile per usarlo dentro i template dei trigger
trigger_variables:
target_temp: !input temp_threshold
sensor_entity: !input climate_target
triggers:
# Si attiva quando la temperatura attuale del clima sale SOPRA la soglia impostata
- trigger: template
value_template: "{{ state_attr(sensor_entity, 'current_temperature') | float(0) > target_temp | float(0) }}"
id: AC_on
# Si attiva quando la temperatura attuale del clima scende SOTTO la soglia meno 2 gradi
- trigger: template
value_template: "{{ state_attr(sensor_entity, 'current_temperature') | float(0) < (target_temp | float(0) - 2) }}"
id: AC_off
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- AC_on
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: Auto
- conditions:
- condition: trigger
id:
- AC_off
sequence:
- action: climate.set_hvac_mode
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
+26
View File
@@ -72,6 +72,32 @@
state_topic: monitoring/se/values state_topic: monitoring/se/values
value_template: >- value_template: >-
{{ (value_json.hs_t | int) / 100 }} {{ (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 - name: SE_Total_power
unit_of_measurement: "MW" unit_of_measurement: "MW"
unique_id: mon_se_tot_p unique_id: mon_se_tot_p