From 0c5899e16ec40cba411bb85030ca76d73a728a6a Mon Sep 17 00:00:00 2001 From: CCOSTAN Date: Sat, 11 Feb 2017 05:50:53 +0000 Subject: [PATCH] More organization of the Speech stuff. --- README.md | 2 ++ automation/{ => Speech}/announcements.yaml | 0 automation/{ => Speech}/home_today.yaml | 0 automation/Speech/nest.yaml | 18 ++++++++++++++++++ automation/{ => Speech}/tts_repeat.yaml | 0 shell_scripts/Jinja Code.py | 4 ++++ 6 files changed, 24 insertions(+) rename automation/{ => Speech}/announcements.yaml (100%) rename automation/{ => Speech}/home_today.yaml (100%) create mode 100755 automation/Speech/nest.yaml rename automation/{ => Speech}/tts_repeat.yaml (100%) diff --git a/README.md b/README.md index 7eb5cf23..46098cd6 100755 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This is my Home Assistant Configuration created with the All In One installer [expanded to 16GB.](https://community.home-assistant.io/t/expanding-partition-on-sd-card-for-raspberry-pi-with-noobs-pre-installed/2036) I update it pretty regularly. Home Assistant runs on my [Raspberry Pi 3](http://amzn.to/2e3DOBY) with [Aeon Labs Z Wave Stick (GEN 5)](http://amzn.to/2eAiAP0). I've also added a [433Mhz Transmitter and receiver](http://amzn.to/2dceNY2) +Lots of my gear comes from [BetaBound](https://goo.gl/0vxT8A) for Beta Testing and reviews. + Software on the Pi : [Home Assistant](https://home-assistant.io/) , [Dasher](https://github.com/maddox/dasher), SSL via [SSLS](SSLS.com) - 5 Bucks A Year! , [HomeBridge](https://github.com/nfarina/homebridge) for full HA <-> Homekit compatibility. **Devices I have :** diff --git a/automation/announcements.yaml b/automation/Speech/announcements.yaml similarity index 100% rename from automation/announcements.yaml rename to automation/Speech/announcements.yaml diff --git a/automation/home_today.yaml b/automation/Speech/home_today.yaml similarity index 100% rename from automation/home_today.yaml rename to automation/Speech/home_today.yaml diff --git a/automation/Speech/nest.yaml b/automation/Speech/nest.yaml new file mode 100755 index 00000000..98d99e4c --- /dev/null +++ b/automation/Speech/nest.yaml @@ -0,0 +1,18 @@ +###################################################################### +## Announce when one of the nests kick in +## Announce over all Chromecast Audios +###################################################################### +- alias: 'Nest Status' + + trigger: + + - platform: state + entity_id: + - sensor.downstairs_thermostat_hvac_state + - sensor.upstairs_thermostat_hvac_state + from: 'off' + + action: + - service: script.Voice_notify + data_template: + value1: "The {{ trigger.entity_id.split('.')[1].split('_')[0]}} {{ trigger.entity_id.split('.')[1].split('_')[1]}} has now been turned on for {{(trigger.to_state.state)}}." \ No newline at end of file diff --git a/automation/tts_repeat.yaml b/automation/Speech/tts_repeat.yaml similarity index 100% rename from automation/tts_repeat.yaml rename to automation/Speech/tts_repeat.yaml diff --git a/shell_scripts/Jinja Code.py b/shell_scripts/Jinja Code.py index b4868b1e..9c2d59ce 100755 --- a/shell_scripts/Jinja Code.py +++ b/shell_scripts/Jinja Code.py @@ -1,5 +1,9 @@ You can use this code to quickly create files from the template editor in HA. I use it mainly for `emulated_hue` and to quickly add in new Customize options to all things HA! + +For the sandbox. +{% set trigger = {'entity_id':'sensor.downstairs_thermostat_hvac_state','to_state':'cooling'} %} + ######################################################### Create fast Customize for groups, sensors, covers etc...