mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-19 07:47:27 +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:
|
action:
|
||||||
- service: script.Voice_notify
|
- service: script.Voice_notify
|
||||||
data_template:
|
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
|
entity_id: switch.living_room_amp
|
||||||
- delay: '00:00:05'
|
- 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
|
- service: tts.google_say
|
||||||
entity_id: media_player.whole_house
|
entity_id: media_player.whole_house
|
||||||
data_template:
|
data_template:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user