mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-15 22:26:10 +00:00
Added some Volume controls so the speakers don't get blown out
This commit is contained in:
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…
x
Reference in New Issue
Block a user