From 224734347aba268cac966e9ced75193429a14a13 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 19 Jul 2020 19:19:41 -0400 Subject: [PATCH] Closes #366 - Noon Switch Control Via Home Assistant by way of Amazon Routines. --- config/automation/away.yaml | 1 - config/packages/cbyge.yaml | 1 + config/packages/noonhome.yaml | 26 ++++++++++++++++++++++++++ config/script/interior_off.yaml | 4 ++-- 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100755 config/packages/noonhome.yaml diff --git a/config/automation/away.yaml b/config/automation/away.yaml index 79e236f6..179094c4 100755 --- a/config/automation/away.yaml +++ b/config/automation/away.yaml @@ -30,7 +30,6 @@ action: - service: script.interior_off - - service: script.paige_lights_off - service: switch.turn_off entity_id: switch.back_landscaping - service: input_boolean.turn_off diff --git a/config/packages/cbyge.yaml b/config/packages/cbyge.yaml index 981b7025..f13054d4 100755 --- a/config/packages/cbyge.yaml +++ b/config/packages/cbyge.yaml @@ -3,6 +3,7 @@ # @CCOSTAN # Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig # These lights are only accessable via Alexa so going to use special Routines to control them. (Loosely) +# https://github.com/CCOSTAN/Home-AssistantConfig/issues/812 #------------------------------------------- ################################################## diff --git a/config/packages/noonhome.yaml b/config/packages/noonhome.yaml new file mode 100755 index 00000000..0abb6132 --- /dev/null +++ b/config/packages/noonhome.yaml @@ -0,0 +1,26 @@ +#------------------------------------------- +# Noon Home Switches and Lights - https://amzn.to/30w3UWy - https://noonhome.com/products +# @CCOSTAN +# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig +# These lights are only accessable via Alexa so going to use special Routines to control them. (Loosely) +# https://github.com/CCOSTAN/Home-AssistantConfig/issues/366 +#------------------------------------------- + +################################################## +## Scripts +## Called in the AWAY / interior_off script to shut all devices down. +################################################## + +script: + noon_lights_off: + alias: 'Bathroom Noon Lights Off' + sequence: + - service: media_player.play_media + data: + entity_id: media_player.master_bathroom + media_content_id: noonoff + media_content_type: routine + +# Previous Method +# - service: ifttt.trigger +# data_template: {"event":"noon_off"} diff --git a/config/script/interior_off.yaml b/config/script/interior_off.yaml index 0cd1a0f2..9516d39e 100755 --- a/config/script/interior_off.yaml +++ b/config/script/interior_off.yaml @@ -11,8 +11,8 @@ interior_off: entity_id: - group.interior_lights - service: script.switch_turn_off_all + - service: script.paige_lights_off # C by GE Lights (https://amzn.to/30w3UWy) + - service: script.noon_lights_off # Noon Home Smart Lights (https://noonhome.com/products) - service: media_player.turn_off entity_id: - group.media_players - - service: ifttt.trigger - data_template: {"event":"noon_off"}