From 7514a536c2697fb38d237783998e4bb65bfb4f12 Mon Sep 17 00:00:00 2001 From: ccostan Date: Sun, 28 Jan 2018 17:56:08 -0500 Subject: [PATCH] More speech and sound redirection through out the house if we are in bed or sleeping. --- .HA_VERSION | 2 +- recorder.yaml | 4 +++- script/speech_processing.yaml | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.HA_VERSION b/.HA_VERSION index 7e9253a3..317b2484 100755 --- a/.HA_VERSION +++ b/.HA_VERSION @@ -1 +1 @@ -0.62.0 \ No newline at end of file +0.61.1 \ No newline at end of file diff --git a/recorder.yaml b/recorder.yaml index e56abe52..76d5b2aa 100755 --- a/recorder.yaml +++ b/recorder.yaml @@ -4,6 +4,9 @@ #db_url: sqlite:///data/home-assistant_v2.db purge_interval: 1 purge_keep_days: 7 +include: + entities: + - group.landscaping exclude: domains: - updater @@ -15,7 +18,6 @@ exclude: entities: - binary_sensor.bedroom_motion - binary_sensor.clock_motion - - binary_sensor.skybell_stone_door_button - binary_sensor.office_motion - sensor.bitcoin - sensor.carlo_6s_battery_state diff --git a/script/speech_processing.yaml b/script/speech_processing.yaml index 94bc0c7c..cc413289 100755 --- a/script/speech_processing.yaml +++ b/script/speech_processing.yaml @@ -61,7 +61,12 @@ speech_processing: - service: tts.amazon_polly_say data_template: entity_id: > - {{ media_player }} + {% if states.group.bed.state == 'off' %} + media_player.livingroomCC + {% else %} + - media_player.alarm_clock + - media_player.bedroom_alarm_panel + {% endif %} message: >- {{ speech_message }}