Updated google_say to google_translate_say and moved to timedate inputs for automation triggers

This commit is contained in:
Jeffrey Stone 2019-07-11 07:40:26 -04:00
parent ab8c285e93
commit c27f1d7767
1 changed files with 38 additions and 11 deletions

View File

@ -56,7 +56,7 @@ script:
- condition: state - condition: state
entity_id: group.family entity_id: group.family
state: 'on' state: 'on'
- service: tts.google_say - service: tts.google_translate_say
data: data:
entity_id: media_player.hass_speaker entity_id: media_player.hass_speaker
message: Unauthorized Access message: Unauthorized Access
@ -72,25 +72,39 @@ script:
automation: automation:
- id: prebed_routine - id: prebed_routine
alias: Prebed Routine initial_state: true
alias: Skylar Nightly Announcements
trigger: trigger:
- platform: time platform: template
at: '19:00:00' value_template: "{{ states('sensor.time') == (state_attr('input_datetime.skylar_nightly_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action: action:
- service: script.prebed_routine - service: script.prebed_routine
- id: nightly_report - id: nightly_report
initial_state: true
alias: Nightly Report alias: Nightly Report
trigger: trigger:
- platform: time platform: template
at: '18:45:00' value_template: "{{ states('sensor.time') == (state_attr('input_datetime.nightly_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action: action:
- service: script.nightly_report - service: script.nightly_report
- id: good_morning_report - id: good_morning_report
alias: Good Morning Report alias: Good Morning Report
initial_state: true initial_state: true
trigger: trigger:
- platform: time platform: template
at: 07:45:00 value_template: "{{ states('sensor.time') == (state_attr('input_datetime.morning_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition:
- condition: state
entity_id: input_boolean.audible_notifications
state: 'on'
action: action:
- service: script.morning_report - service: script.morning_report
- service: script.twitter_notify - service: script.twitter_notify
@ -101,8 +115,8 @@ automation:
alias: Skylar Morning Greeting alias: Skylar Morning Greeting
initial_state: true initial_state: true
trigger: trigger:
- platform: time platform: template
at: 07:58:00 value_template: "{{ states('sensor.time') == (state_attr('input_datetime.skylar_morning_report', 'timestamp') | int | timestamp_custom('%H:%M', False)) }}"
condition: condition:
- condition: time - condition: time
weekday: weekday:
@ -112,8 +126,21 @@ automation:
- thu - thu
- fri - fri
- condition: state - condition: state
entity_id: input_boolean.skylar_dressed_alarm entity_id: input_boolean.audible_notifications
state: 'on' state: 'on'
action: action:
- service: script.skylar_morning_greeting - service: script.skylar_morning_greeting
- id: play_weather_report
alias: Play Weather Report
initial_state: true
trigger:
- entity_id: input_boolean.play_weather_report
from: 'Off'
platform: state
to: 'On'
action:
- service: script.turn_on
entity_id: script.weather_report
- service: script.voice_reports_off