Added some Volume controls so the speakers don't get blown out

This commit is contained in:
CCOSTAN 2017-02-04 23:17:45 +00:00
parent 92756cd28e
commit 9989ce1208
2 changed files with 14 additions and 1 deletions

View File

@ -74,4 +74,4 @@
action:
- service: script.Voice_notify
data_template:
value1: "There has been a new device detected on the network. Be sure to appropriately catagorie it within Circle."
value1: "There has been a new device detected on the network. Be sure to appropriately catagorize it within Circle."

View File

@ -37,6 +37,19 @@ voice_notify:
entity_id: switch.living_room_amp
- delay: '00:00:05'
- service: media_player.volume_set
entity_id:
- media_player.whole_house
data_template:
volume_level: >
{% if now().strftime("%H")|int < 12 %}
0.20
{% elif now().strftime("%H")|int < 18 %}
0.70
{% else %}
0.40
{% endif %}
- service: tts.google_say
entity_id: media_player.whole_house
data_template: