Adding in More Speech! Really Love TTS.

This commit is contained in:
CCOSTAN 2017-02-07 06:09:31 +00:00
parent 00b16e3cf5
commit 9801e6293b
6 changed files with 76 additions and 75 deletions

View File

@ -38,7 +38,7 @@
- light.sink
- service: script.Voice_notify
data_template:
value1: "It is getting a little dark because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')}}
value1: "It is getting a little dark inside the house because of the {{trigger.entity_id.split('_')[2]|replace('precip','rain') }} {{trigger.entity_id.split('_')[3]|replace('intensity',' ')}}
outside. I will turn on some extra lights in the living room."
######################################################################
@ -62,4 +62,4 @@
transition: 1200
- service: script.Voice_notify
data_template:
value1: "Sun is back out. Let's turn down these lights now."
value1: "The sun is back out. Let's turn down these lights now."

29
automation/home_today.yaml Executable file
View File

@ -0,0 +1,29 @@
######################################################################
## Announce when people come or go.
## Announce over all Chromecast Audios
######################################################################
- alias: 'Home Stats'
trigger:
- platform: state
entity_id:
- group.family
from: 'not_home'
to: 'home'
action:
- service: script.Voice_notify
data_template:
value1: >
"Welcome Home {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }}. Here are the main points for today:
{%if now().strftime("%a") == 'Wed' or now().strftime("%a") == 'Sun'%}
Today is {{now().strftime("%A")}} and {{now().strftime("%A")}} is trash day. Please be sure to tell the kids to take out the trash.
{%endif%}
Inside the house, it is {{ states.climate.downstairs.attributes["current_temperature"]}} degrees with {{states('sensor.downstairs_thermostat_humidity')}} around percent humidity. Outside, it is going to be {{states('sensor.dark_sky_minutely_summary')}}
{% if is_state('cover.garadget_large', 'open') -%}
Also, The Large Garage Door is still open
{% endif -%}
{% if is_state('cover.garadget_small', 'open') -%}
{% if is_state('cover.garadget_large', 'open') -%}and
{%- endif %} The small Garage Door is still open.
{% endif %}

View File

@ -9,13 +9,6 @@ input_boolean.alert_mode:
icon: mdi:alert-octagram
input_boolean.chore_reminder:
friendly_name: 'Chore Reminder'
emulated_hue: False
hidden: False
icon: mdi:human-male-female
input_boolean.guest_mode:
friendly_name: 'Guest Mode'
emulated_hue: True

View File

@ -3,25 +3,47 @@
###################################
scene.front_full_brightness:
friendly_name: 'Front Full Brightness'
emulated_hue: True
hidden: false
scene.living_room_tv_time:
friendly_name: 'TV Time'
emulated_hue: True
hidden: false
scene.month_12_colors:
friendly_name: 'Month 12 Colors'
emulated_hue: False
hidden: true
scene.month_01_colors:
friendly_name: 'Month 01 Colors'
emulated_hue: False
hidden: true
emulated_hue: True
hidden: False
scene.month_02_colors:
friendly_name: 'Month 02 Colors'
scene.living_room_tv_time:
friendly_name: 'Tv Time'
emulated_hue: True
hidden: False
scene.month_marti_gras_colors:
friendly_name: 'Month Marti Gras Colors'
emulated_hue: False
hidden: true
hidden: True
scene.month_rwb_colors:
friendly_name: 'Month Rwb Colors'
emulated_hue: False
hidden: True
scene.month_st_patty_colors:
friendly_name: 'Month St Patty Colors'
emulated_hue: False
hidden: True
scene.month_standard_colors:
friendly_name: 'Month Standard Colors'
emulated_hue: False
hidden: True
scene.month_valentine_colors:
friendly_name: 'Month Valentine Colors'
emulated_hue: False
hidden: True

View File

@ -13,15 +13,6 @@ script.front_house_motion:
friendly_name: 'Front House Motion'
emulated_hue: False
hidden: True
script.holiday_switches_on:
friendly_name: 'Holiday Switches On'
emulated_hue: False
hidden: False
script.ifttt_notify:
friendly_name: 'Ifttt Notify'
@ -61,6 +52,4 @@ script.switch_turn_off_all:
script.voice_notify:
friendly_name: 'Voice Notify'
emulated_hue: False
hidden: True
hidden: True

View File

@ -8,32 +8,7 @@
switch_turn_off_all:
sequence:
- service: switch.turn_off
entity_id: switch.living_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.kitchen_Accents
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.den_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.foyer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.printer_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.living_room_amp
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.Outlet_304_4
entity_id: group.all_switches
- service: switch.turn_off
entity_id: switch.living_room_outlet
- delay: '00:01:00'
@ -52,14 +27,7 @@ switch_turn_off_all:
- service: switch.turn_off
entity_id: switch.garage_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.dining_room_outlet
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.living_room_amp
- delay: '00:01:00'
- service: switch.turn_off
entity_id: switch.Outlet_304_4
- delay: '00:01:00'
- service: switch.turn_off
entity_id: group.all_switches