From 51bd5ea08a8740e92e94299ea870e7a94c78601d Mon Sep 17 00:00:00 2001 From: Bearded Tinker Date: Thu, 15 Aug 2024 18:35:03 +0200 Subject: [PATCH] AC automation additional conditions --- automations/utilities/ac_off.yaml | 8 +++++++- automations/utilities/ac_on.yaml | 9 +++++++-- custom_components/open_epaper_link/lastapinteraction.txt | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/automations/utilities/ac_off.yaml b/automations/utilities/ac_off.yaml index 409a4dec..1d270770 100644 --- a/automations/utilities/ac_off.yaml +++ b/automations/utilities/ac_off.yaml @@ -12,7 +12,13 @@ trigger: to: 'on' for: '00:06:00' -condition: [] +condition: + condition: and + conditions: + - condition: state + alias: "AC is on" + entity_id: binary_sensor.ac_on + state: 'on' action: - service: mqtt.publish diff --git a/automations/utilities/ac_on.yaml b/automations/utilities/ac_on.yaml index ab1b902f..2defd0c7 100644 --- a/automations/utilities/ac_on.yaml +++ b/automations/utilities/ac_on.yaml @@ -8,7 +8,7 @@ id: f216978e-68ab-423a-a049-ad262f96bbf1 trigger: platform: numeric_state - entity_id: sensor.loggia_temperature + entity_id: sensor.balcony_temperature above: 26 for: '00:01:30' @@ -16,7 +16,7 @@ condition: condition: and conditions: - condition: numeric_state - entity_id: sensor.loggia_temperature + entity_id: sensor.balcony_temperature above: 26 - condition: numeric_state entity_id: sensor.dining_room_temperature @@ -25,6 +25,11 @@ condition: alias: "People home" entity_id: binary_sensor.people_home state: 'on' + - condition: state + alias: "AC is off" + entity_id: binary_sensor.ac_on + state: 'off' + action: - service: mqtt.publish diff --git a/custom_components/open_epaper_link/lastapinteraction.txt b/custom_components/open_epaper_link/lastapinteraction.txt index f82b2390..6ed567c3 100644 --- a/custom_components/open_epaper_link/lastapinteraction.txt +++ b/custom_components/open_epaper_link/lastapinteraction.txt @@ -1 +1 @@ -1723738824.442968 \ No newline at end of file +1723739662.569557 \ No newline at end of file