From 2d17695583e60041274cd973c7a51b32f929284b Mon Sep 17 00:00:00 2001 From: James Walker Date: Fri, 10 Feb 2023 22:10:08 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20purifier=20automation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .HA_VERSION | 2 +- automations.yaml | 2 +- automations/bedroom/purifier.yaml | 31 +++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 automations/bedroom/purifier.yaml diff --git a/.HA_VERSION b/.HA_VERSION index e6c59f6..d240f54 100644 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -2023.1.7 +2023.2.3 \ No newline at end of file diff --git a/automations.yaml b/automations.yaml index 0637a08..fe51488 100644 --- a/automations.yaml +++ b/automations.yaml @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/automations/bedroom/purifier.yaml b/automations/bedroom/purifier.yaml new file mode 100644 index 0000000..38dd803 --- /dev/null +++ b/automations/bedroom/purifier.yaml @@ -0,0 +1,31 @@ +- id: "1676005859456" + alias: Bedroom TV Time + description: "" + trigger: + - platform: state + entity_id: + - media_player.bedroom_2 + to: playing + condition: [] + action: + - service: switch.turn_on + data: {} + target: + entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode + mode: single + +- id: "1676006403295" + alias: Bedroom TV Time Over + description: "" + trigger: + - platform: state + entity_id: + - media_player.bedroom_2 + to: standby + condition: [] + action: + - service: switch.turn_off + data: {} + target: + entity_id: switch.purifier_humidify_cool_formaldehyde_night_mode + mode: single