Minor changes for #879 - Trying a different mode.
This commit is contained in:
parent
0aa1068ac4
commit
ec749c92a4
|
@ -1,10 +1,12 @@
|
||||||
###################################
|
#####################################################################
|
||||||
## cuckoo Clock simulation.
|
# @CCOSTAN
|
||||||
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
||||||
## Plays the number of cuckoos per hour and 1 on the half hour.
|
## Plays the number of cuckoos per hour and 1 on the half hour.
|
||||||
###################################
|
#####################################################################
|
||||||
|
|
||||||
- alias: Cuckoo Clock
|
- alias: Cuckoo Clock
|
||||||
id: 33dcd8e2-e87c-4d18-82bc-c7f9b53a1624
|
id: 33dcd8e2-e87c-4d18-82bc-c7f9b53a1624
|
||||||
|
mode: restart
|
||||||
trigger:
|
trigger:
|
||||||
- platform: time_pattern
|
- platform: time_pattern
|
||||||
hours: '*'
|
hours: '*'
|
||||||
|
@ -16,16 +18,14 @@
|
||||||
- condition: time
|
- condition: time
|
||||||
after: '09:29:00'
|
after: '09:29:00'
|
||||||
before: '21:30:00'
|
before: '21:30:00'
|
||||||
- condition: state
|
- condition: or #Either we are home or Guest_Mode is on.
|
||||||
entity_id: group.family
|
conditions:
|
||||||
state: 'home'
|
- condition: state
|
||||||
- condition: template
|
entity_id: group.family
|
||||||
value_template: >
|
state: 'home'
|
||||||
{% if is_state('media_player.livingroomCC', 'playing') %}
|
- condition: state
|
||||||
false
|
entity_id: input_boolean.guest_mode
|
||||||
{% else %}
|
state: 'on'
|
||||||
true
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: script.amp_settings
|
- service: script.amp_settings
|
||||||
|
@ -33,6 +33,8 @@
|
||||||
media_player: 'media_player.livingroomcc'
|
media_player: 'media_player.livingroomcc'
|
||||||
volume_level: 0.22
|
volume_level: 0.22
|
||||||
|
|
||||||
|
- wait_template: "{{ not is_state('media_player.livingroomCC', 'playing') }}"
|
||||||
|
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: >
|
entity_id: >
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 40 KiB |
Loading…
Reference in New Issue