mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-16 02:25:10 +00:00
Compare commits
5 Commits
e75ca4b763
...
f13ddf8694
Author | SHA1 | Date | |
---|---|---|---|
|
f13ddf8694 | ||
|
c5fbda4a0f | ||
|
8a2141c78c | ||
|
277fdd89f3 | ||
|
e92beded17 |
@@ -15,9 +15,6 @@
|
||||
minutes: 30
|
||||
|
||||
condition:
|
||||
- condition: time
|
||||
after: '09:29:00'
|
||||
before: '21:30:00'
|
||||
- condition: or #Either we are home or Guest_Mode is on.
|
||||
conditions:
|
||||
- condition: state
|
||||
@@ -37,16 +34,19 @@
|
||||
|
||||
- service: media_player.play_media
|
||||
data:
|
||||
entity_id: >
|
||||
{% if states.group.bed.state == 'off' %}
|
||||
media_player.livingroomCC
|
||||
{% else %}
|
||||
media_player.alarm_clock, media_player.bedroom_alarm_panel
|
||||
{% endif %}
|
||||
entity_id: media_player.livingroomCC
|
||||
media_content_id: >
|
||||
{% if now().strftime("%M")|int == 30 %}
|
||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/cuckoo-clock-01.wav
|
||||
{% if now().strftime("%B") == 'October' %}
|
||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/october-clock/cuckoo-clock-01.wav
|
||||
{% else %}
|
||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/cuckoo-clock-{{now().strftime("%I")}}.wav
|
||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/cuckcoo-clockcuckoo-clock-01.wav
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if now().strftime("%B") == 'October' %}
|
||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/october-clock/cuckoo-clock-{{now().strftime("%I")}}.wav
|
||||
{% else %}
|
||||
https://raw.githubusercontent.com/CCOSTAN/Home-AssistantConfig/master/config/sounds/cuckcoo-clock/cuckoo-clock-{{now().strftime("%I")}}.wav
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
media_content_type: audio/mp4
|
||||
|
@@ -12,6 +12,8 @@
|
||||
at: '22:00:00'
|
||||
|
||||
action:
|
||||
- wait_template: >-
|
||||
{{ not is_state('input_boolean.guest_mode', 'on') or is_state('group.bed', 'on') }}
|
||||
- wait_template: >-
|
||||
{{ not is_state('media_player.livingroomCC', 'playing') }}
|
||||
- wait_template: >-
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user