From fec3a1f63a408a5541684ad357af30a5480f1b42 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 25 Feb 2018 16:00:30 -0500 Subject: [PATCH] Add a Text notification toggle to surpres text messages. --- README.md | 4 ++-- group/home_mode.yaml | 1 + input_boolean/home_modes.yaml | 5 +++++ script/notify_engine.yaml | 7 ++++++- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 71d2ecf8..c4493aae 100755 --- a/README.md +++ b/README.md @@ -247,10 +247,10 @@ Think of the Hubs each as bridges for HA to talk to various hardware around the -Almost all my lights are white GE Link lights. I bought them early on before Hue came out with inexpensive white A19s. Even Ikea has great lights now. Colored lights are in the front sconces and also used in the living room. The Go lights are specifically for the kids since they are both wireless and also have a button on them making them very tactile for kids. The EtekCity outlets are the most inexpensive reliable outlets out there. I have them deployed all over the house as accent lighting with some rope lights in most of the home's cut outs. +Almost all my lights (40+) are white GE Link lights. I bought them early on before Hue came out with inexpensive white A19s. Even Ikea has great lights now. Colored lights are in the front sconces and also used in the living room. The Go lights are specifically for the kids since they are both wireless and also have a button on them making them very tactile for kids. The EtekCity outlets are the most inexpensive ($6) yet reliable outlets out there. I have them deployed all over the house as accent lighting with some rope lights in most of the home's cut outs. * Turn on TV Time Lights (dim and color) at Sunset (if home and TV is on) * Sets up the front lights in the house with preset colors depending on the ~~month~~ day!. -* Turns living room lights 'red' when a Window or Door is opened past sunset. Resets to yellow/gold when all dors/windows are closed. +* Turns living room lights `red` when a Window or Door is opened past sunset. Resets to `yellow/gold` when all dors/windows are closed. diff --git a/group/home_mode.yaml b/group/home_mode.yaml index dca8bbfb..8c17376a 100755 --- a/group/home_mode.yaml +++ b/group/home_mode.yaml @@ -5,5 +5,6 @@ home_modes: - input_boolean.school_mode - input_boolean.alert_mode - input_boolean.speech_notifications + - input_boolean.text_notifications - input_boolean.last_message - sensor.low_battery diff --git a/input_boolean/home_modes.yaml b/input_boolean/home_modes.yaml index 987792f8..45389b09 100755 --- a/input_boolean/home_modes.yaml +++ b/input_boolean/home_modes.yaml @@ -17,3 +17,8 @@ speech_notifications: name: Speech Notifications icon: mdi:speaker-wireless initial: on + +text_notifications: + name: Text Notifications + icon: mdi:cellphone-wireless + initial: on diff --git a/script/notify_engine.yaml b/script/notify_engine.yaml index e05e25ce..1f061029 100755 --- a/script/notify_engine.yaml +++ b/script/notify_engine.yaml @@ -12,7 +12,12 @@ ###################################################################################################### notify_engine: - sequence: + sequence: + - condition: or + conditions: + - condition: state + entity_id: input_boolean.text_notifications + state: 'on' # - service: ifttt.trigger # data_template: {"event":"notify_engine", "value1":"{{ value1 }}", "value2":"{{ value2 }}", "value3":"{{ value3 }}"}