Wife (debbie) hate my Cuckoo clock
its a
plug into some PC speakers after playing around with a automation
I have
- id: 33dcd8e2-e87c-4d18-82bc-c7f9b53a1624
alias: Cuckoo Clock
initial_state: true
mode: restart
trigger:
- platform: time_pattern
minutes: 0
- platform: time_pattern
minutes: 15
- platform: time_pattern
minutes: 30
- platform: time_pattern
minutes: 45
condition:
- condition: state
entity_id: person.debbie
state: not_home
action:
- wait_template: "{{ not is_state('media_player.cuckoo_clock', 'playing') }}"
- service: media_player.play_media
data_template:
entity_id: media_player.cuckoo_clock
media_content_id: >-
{%set chime = ['GrandFatherChime', 'cuckoo-clock-'] | random %}
{% if now().strftime("%M")|int == 0 %}
/local/Chime/{{chime}}{{now().strftime("%I")}}.wav
{% elif now().strftime("%M")|int == 15 %}
/local/Chime/GrandFatherChime_quarter.mp3
{% elif now().strftime("%M")|int == 30 %}
/local/Chime/GrandFatherChime_half.mp3
{% elif now().strftime("%M")|int == 45 %}
/local/Chime/GrandFatherChime_3quarter.mp3
{% endif %}
media_content_type: audio/mp4
wife debbie not home
then when the wife debbie home
I can now see whats in my head and what my house is doning
and the best bit is we can see what the templating did