
🇳🇴 Celebrate Norway’s Constitution Day with Home Assistant: 10 Smart Automations for May 17th
If you’ve ever experienced May 17th (Syttende Mai) in Norway, you know it’s not just a national holiday—it’s a full-day celebration filled with parades, flags, traditional clothing, music, and an impressive amount of ice cream and hot dogs.
Unlike many other countries, Norway celebrates its Constitution Day with children’s parades (“barnetog”), marching bands, and a strong focus on community and joy rather than military displays. It’s loud, colorful, and full of energy from early morning until late evening.
So what if your smart home could join the celebration?
In this post, I’ll walk you through 10 creative Home Assistant automations that will elevate your 17th of May—whether you want atmosphere, fun for the kids, or just a smoother day.
🧠 Core Components Used
Before diving in, here are the typical Home Assistant components used:
automation– The logic behind everythinglight– For RGB lighting effectsmedia_player– Speakers (Sonos, Chromecast, etc.)input_boolean– Toggle for “17 May mode”counter– For fun tracking (like ice cream eaten)calendar– For schedule-based triggersnotify– Push notificationsweather– Context-aware automations
🎉 1. Automatic “17 May Mode”
Start the day right by activating a national celebration mode.
What it does:
- Turns lights red, white, and blue
- Activates decorative lighting
- Sets the tone for the day
YAML Example
automation:
- alias: Activate 17 May Mode
trigger:
- platform: time
at: "07:00:00"
condition:
- condition: time
month: 5
day: 17
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.may17_mode
- service: light.turn_on
target:
entity_id: light.living_room
data:
rgb_color: [255, 0, 0]
🔊 2. Play the National Anthem at 08:00
A simple but powerful moment.
What it does:
- Plays the Norwegian national anthem across speakers
- Sets volume appropriately
YAML Example
automation:
- alias: Play Anthem
trigger:
- platform: time
at: "08:00:00"
condition:
- condition: state
entity_id: input_boolean.may17_mode
state: "on"
action:
- service: media_player.volume_set
target:
entity_id: media_player.house_speakers
data:
volume_level: 0.4
- service: media_player.play_media
target:
entity_id: media_player.house_speakers
data:
media_content_id: "http://example.com/anthem.mp3"
media_content_type: music
🎈 3. Kids Party Button
Let the kids trigger fun with a single button press.
What it does:
- Plays music
- Flashes lights
- Creates instant excitement
YAML Example
automation:
- alias: Kids Party Button
trigger:
- platform: state
entity_id: sensor.party_button
to: "pressed"
action:
- service: light.turn_on
target:
entity_id: light.living_room
data:
rgb_color: [0, 0, 255]
flash: short
- service: media_player.play_media
target:
entity_id: media_player.speaker
data:
media_content_id: "http://example.com/party.mp3"
media_content_type: music
🌭 4. Smart Grill Notifications
Because no 17 May is complete without food.
What it does:
- Detects when grill is active
- Sends notifications
- Helps timing food
YAML Example
automation:
- alias: Grill Started
trigger:
- platform: state
entity_id: switch.grill
to: "on"
action:
- service: notify.mobile_app
data:
message: "The grill is on – time for hot dogs 🌭"
📅 5. Daily Program Dashboard
Create a simple overview of the day.
What it shows:
- Weather forecast (°C)
- Schedule
- Countdown to events
Use a Markdown card:
type: markdown
content: |
## 🇳🇴 May 17 Schedule
- 08:00 Anthem
- 10:00 Parade
- 13:00 Lunch
🔔 6. Parade Reminder
Never miss the highlight of the day.
YAML Example
automation:
- alias: Parade Reminder
trigger:
- platform: time
at: "09:45:00"
action:
- service: notify.mobile_app
data:
message: "The parade starts soon 🎉"
🌦️ 7. Weather-Based Advice
Because Norwegian weather is… unpredictable.
What it does:
- Checks conditions
- Sends tailored advice
YAML Example
automation:
- alias: Weather Advice
trigger:
- platform: time
at: "08:30:00"
action:
- choose:
- conditions:
- condition: state
entity_id: weather.home
state: "rainy"
sequence:
- service: notify.mobile_app
data:
message: "Bring an umbrella ☔"
- conditions:
- condition: state
entity_id: weather.home
state: "sunny"
sequence:
- service: notify.mobile_app
data:
message: "Perfect ice cream weather 🍦"
🍦 8. Ice Cream Counter
A fun and surprisingly engaging feature.
YAML Example
counter:
ice_cream:
name: Ice Creams Eaten
initial: 0
automation:
- alias: Add Ice Cream
trigger:
- platform: state
entity_id: button.ice_cream
to: "pressed"
action:
- service: counter.increment
target:
entity_id: counter.ice_cream
🎶 9. Ambient Music Throughout the Day
Keep the vibe going automatically.
YAML Example
automation:
- alias: Daytime Music
trigger:
- platform: time_pattern
hours: "/2"
condition:
- condition: time
after: "09:00:00"
before: "18:00:00"
action:
- service: media_player.play_media
target:
entity_id: media_player.speaker
data:
media_content_id: "http://example.com/norwegian_playlist"
media_content_type: playlist
🌙 10. Evening Wind-Down Mode
After a long day, it’s time to relax.
What it does:
- Dims lights
- Plays calm music
- Ends the celebration
YAML Example
automation:
- alias: Evening Mode
trigger:
- platform: time
at: "21:00:00"
condition:
- condition: state
entity_id: input_boolean.may17_mode
state: "on"
action:
- service: light.turn_on
target:
entity_id: light.living_room
data:
brightness: 80
- service: media_player.play_media
target:
entity_id: media_player.speaker
data:
media_content_id: "http://example.com/chill.mp3"
media_content_type: music
🚀 Final Thoughts
These automations aren’t just about convenience—they’re about creating atmosphere and shared experiences.
What makes May 17th special is the feeling of celebration everywhere, and with Home Assistant, your home can actively participate in that joy.
Start simple, pick 2–3 ideas, and expand next year. You’ll likely find that these small touches make a surprisingly big difference.
Some of the links in this article are "affiliate links", a link with a special tracking code. This means if you click on an affiliate link and purchase the item, we will receive an affiliate commission. The price of the item is the same whether it is an affiliate link or not. Regardless, we only recommend products or services we believe will add value to our readers. By using the affiliate links, you are helping support our Website, and we genuinely appreciate your support.