In Norway, many have an Easter tradition to listen to a radio quiz called “Påskelabyrinten”. This radio quiz has been on since 1987. We can’t miss out on this tradition, so why not use Home Assistant to automatically send us a reminder and turn it on for us.
With Home Assistant 2022.3 this has gotten much easier.
Easy automation for this is to use time as a trigger. Not any fancier to just check the time, and start this automation some seconds before it starts.
The next thing we have to insert in the automation is the action. The first thing is a notification. Just a simple push message to the cell phone with information that the show is starting.
Now it is time to turn on the speakers and start to stream the correct radio channel. This is pretty easy in HA after 2022.3. Choose “play media” in the action type, select the media player you want to use, and click on the big + sign to choose media.
The complete automation – happy easter
alias: Påskelabyrinten
description: ''
trigger:
- platform: time
at: '09:59:45'
condition: []
action:
- service: notify.mobile_app_lars_sin_iphone_11
data:
title: Påskelabyrinten
message: Nå starter Påskelabyrinten
- service: media_player.play_media
target:
entity_id: media_player.stua
data:
media_content_id: media-source://radio_browser/657f3d22-08f0-11e9-a80b-52543be04c81
media_content_type: audio/mpeg
metadata:
title: NRK P1 Trøndelag
thumbnail: https://radio.nrk.no//dist/favicons/favicon.ico
media_class: music
children_media_class: null
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://radio_browser
- media_content_type: music
media_content_id: media-source://radio_browser/country/NO
mode: single