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

pull/76/head
CCOSTAN 9 years ago
parent 92756cd28e
commit 9989ce1208

@ -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."

@ -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:

Loading…
Cancel
Save

Powered by TurnKey Linux.