mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-21 00:25:12 +00:00
Adding in condition that looks to see if music is playing.
This commit is contained in:
parent
9baa964ac9
commit
eac2c5b98d
@ -32,7 +32,13 @@ voice_notify:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.speech_notifications
|
entity_id: input_boolean.speech_notifications
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: template
|
||||||
|
value_template: >
|
||||||
|
{% if is_state('media_player.livingroomCC', 'playing') %}
|
||||||
|
false
|
||||||
|
{% else %}
|
||||||
|
true
|
||||||
|
{% endif %}
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
entity_id: switch.living_room_amp
|
entity_id: switch.living_room_amp
|
||||||
- delay: '00:00:05'
|
- delay: '00:00:05'
|
||||||
@ -48,7 +54,7 @@ voice_notify:
|
|||||||
{% if now().strftime("%H")|int < 12 %}
|
{% if now().strftime("%H")|int < 12 %}
|
||||||
0.20
|
0.20
|
||||||
{% elif now().strftime("%H")|int < 18 %}
|
{% elif now().strftime("%H")|int < 18 %}
|
||||||
0.40
|
0.45
|
||||||
{% else %}
|
{% else %}
|
||||||
0.25
|
0.25
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user