From 0bdaabf5655c68fad18d7e79f44b1fef2aec9e6b Mon Sep 17 00:00:00 2001 From: ttrabatt Date: Fri, 25 Oct 2024 22:27:05 +0200 Subject: [PATCH] Added BagnoPT and Soggiorno PT save energy automations --- .gitignore | 2 +- automations.yaml | 60 ++++++------------- .../automation/homeassistant/heat_save.yaml | 2 +- 3 files changed, 20 insertions(+), 44 deletions(-) diff --git a/.gitignore b/.gitignore index 8d77748..cba7b67 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ custom_components/* www/* image/* themes/* -.storage/# \ No newline at end of file +./.storage/# \ No newline at end of file diff --git a/automations.yaml b/automations.yaml index a71df64..81a3ae7 100644 --- a/automations.yaml +++ b/automations.yaml @@ -80,48 +80,6 @@ light_target: device_id: 702137a6f2c17b89fdb0598f7003743c no_motion_wait: 20 -- id: '1729866028559' - alias: example_heat_off - description: '' - triggers: - - type: opened - device_id: ccef009d1d350a83038001fc7d79aaca - entity_id: 60ed1a5a3fb74da5ba62b7fb986eb607 - domain: binary_sensor - trigger: device - conditions: - - condition: numeric_state - entity_id: sensor.esterno_temperature - below: '18' - actions: - - if: - - condition: state - entity_id: binary_sensor.bagnoovest_finestra_contact - state: 'on' - for: - hours: 0 - minutes: 0 - seconds: 10 - then: - - action: climate.set_hvac_mode - metadata: {} - data: - hvac_mode: 'off' - target: - entity_id: climate.bagnoovest_termosifone - - device_id: 4d7cfffa600d43fc0364ef5d6f18b4a8 - domain: climate - entity_id: 400abc59ce63c0a4f056e2d4a8b7c50c - type: set_hvac_mode - hvac_mode: heat - else: - - action: climate.set_hvac_mode - metadata: {} - data: - hvac_mode: heat - target: - entity_id: climate.bagnoovest_termosifone - mode: single - id: '1729875991469' alias: BagnoOvest-save-energy description: Thermostat will close upon window open @@ -130,3 +88,21 @@ input: window_sensor: binary_sensor.bagnoovest_finestra_contact climate_target: climate.bagnoovest_termosifone +- id: '1729887529602' + alias: BagnoPT-save-energy + 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' + alias: SoggiornoPT-save-energy + 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 diff --git a/blueprints/automation/homeassistant/heat_save.yaml b/blueprints/automation/homeassistant/heat_save.yaml index b493de9..e411717 100644 --- a/blueprints/automation/homeassistant/heat_save.yaml +++ b/blueprints/automation/homeassistant/heat_save.yaml @@ -44,7 +44,7 @@ actions: - if: - condition: state entity_id: !input window_sensor - state: "on" + state: "open" for: hours: 0 minutes: 0