Dutch Flag Protocol

Is there anyone who has implemented the Dutch Flag Protocol in Home Assistant?

Wanneer kan ik de Nederlandse vlag uithangen? | Rijksoverheid.nl

I would like to see on my dashboard when the flag can be flown and how (half-mast, with or without pennant).
Based on that, I’d like to create automations that send a notification, etc.
Very much similar like the ‘Afvalbeheer’ integration.

I understand that the dates are easy to look up and, for example, can be added to a calendar, but the special cases are what make it really interesting—like “if the date falls on a Sunday, then raise the flag on Saturday instead.”

Is there any Google-like calendar including this event? Then you can track it and reflect on a dashboard.

Thanks for your suggestion. Did search for such a calendar, but didn’t find it yet. For now, I have manually set the agenda items with a recurring pattern. Next, I have manually moved the items on sundays to the correct day for the next few years.

Now, with a script I read the upcoming day to put out the flag. With a automation I calculate if that date is tomorrow or today and take action on the outcome.

I wondered the same, last weekend and could not find any public accessible API. I did however create templates for this as I did not want to set calender items manually.

So I decided the sensor is also not what I want, I am currently recreating this as a HACS installable integration.

Following is included, if you have more wishes please let me know.

  • EN /NL Language
  • Days until next flag day
  • Should the flag be Full mast, Half mast, with Orange pennant or without
  • Reason why the flag should be out

Any more ideas?

C

That sounds really cool. I can imagine you’d want to be able to add your own personal flag moments somewhere. So not only the ‘official’ flag moments, but also your wedding anniversary, your son or daughter getting married, one of the kids moving out… :wink:

So I went full nuts on this, you can find the integration here: GitHub - svbui/Home-Assistant-Flag-Protocol and is HACS installable.

Currently supports:

  • Netherlands
  • Belgium
  • Sweden

The following countries have not been added to this release yet, but will be later today / this weekend.

  • Denmark
  • Norway
  • Sweden

Germany is to complicated due to federal rules being overwritten by Bundeslander rules. France I could not find official documentation that I was able to read.

For all countries the official rules are applied from government websites. Hoisting rules are applied by sun.sun or time, whatever is applicable per country or flagday.

There are 2 sensors:

  • Flag Day (countryname) stating if you should flag, why and how (full mast, half mast, with pennant or no pennant)
  • Next Flag Day Countdown (countryname), with days until, why and how

On your request of individual days: I have considered adding this. However due to there not being any logic to it, at first I decided to leave it out and see if there is demand for it. I do have an idea, how this could be done maybe, but it would be probably be a separate install, just like how you can install multiple countries. I will look in to it.

You did went full nuts! I love it.

Would it be possible to incorporate the Dutch veteransflag (https://veteranenshop.nl/wp-content/uploads/2023/08/Vlaggenprotocol.pdf)?

I’ll look in to it, my time is a bit limited this week so will probably be next week

1 Like