Updates to the sounds.. I don't want to be bothered when I am in bed.
This commit is contained in:
parent
77bc102334
commit
97a54bf65a
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '09:30:00'
|
after: '09:29:00'
|
||||||
before: '21:30:00'
|
before: '21:30:00'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
|
@ -28,25 +28,22 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: media_player.turn_on
|
- service: script.amp_settings
|
||||||
entity_id: media_player.livingroomCC
|
|
||||||
|
|
||||||
- service: switch.turn_on
|
|
||||||
entity_id: switch.living_room_amp
|
|
||||||
- delay: '00:00:05'
|
|
||||||
|
|
||||||
- service: media_player.volume_set
|
|
||||||
entity_id:
|
|
||||||
- media_player.livingroomCC
|
|
||||||
data:
|
data:
|
||||||
|
media_player: 'media_player.livingroomcc'
|
||||||
volume_level: 0.22
|
volume_level: 0.22
|
||||||
|
- wait_template: >-
|
||||||
|
{{ states.switch.living_room_amp.state == 'on' }}
|
||||||
|
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data_template:
|
||||||
entity_id:
|
entity_id: >
|
||||||
- media_player.livingroomCC
|
{% if states.group.bed.state == 'off' %}
|
||||||
|
media_player.livingroomCC
|
||||||
|
{% else %}
|
||||||
- media_player.alarm_clock
|
- media_player.alarm_clock
|
||||||
# - media_player.bedroom_alarm_panel
|
- media_player.bedroom_alarm_panel
|
||||||
|
{% endif %}
|
||||||
media_content_id: >
|
media_content_id: >
|
||||||
{% if now().strftime("%M")|int == 30 %}
|
{% if now().strftime("%M")|int == 30 %}
|
||||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/sounds/cuckoo-clock-01.wav
|
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/sounds/cuckoo-clock-01.wav
|
||||||
|
|
|
@ -37,6 +37,9 @@ amp_settings:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: switch.living_room_amp
|
entity_id: switch.living_room_amp
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: group.bed
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
data:
|
data:
|
||||||
|
|
Loading…
Reference in New Issue