Skip to content

πŸ‡©πŸ‡° Official flagdays in Denmark with a lot of useful logic and attributes. It is possible to add your own anniversaries πŸŽ‚ or special flags πŸ³οΈβ€πŸŒˆ πŸ΄β€β˜ οΈ

License

Notifications You must be signed in to change notification settings

J-Lindvig/Flagdays_DK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

70 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

hacs_badge GitHub release (latest by date) GitHub all releases GitHub last commit GitHub code size in bytes Buy me a coffee

Flagdays_DK

Sensor with official flagdays in Denmark, with a option to add your own (birthdays etc.)

BREAKING CHANGES

The integration has been rewritten and have received some TLC and improvements.

  • time_offset is now offset (Again). Default is 10 minutes
  • hide_past is removed.
  • flags is removed. We are now using include and exclude.

For installation instructions see this guide.

Quick start

Add the following to your configuration.yaml

flagdays_dk:
  # Optional entries
  
  # Time in minutes before flag up/down times, used for triggers fx. automation, Default is 10
  offset: 5

  # Include and Exclude options
  include:
    - Erfalasorput    # Either name of a special (commonwealth) flag
    - Færøerne        # or a string with a part of the flagdays name

  # Strings to be present in the flagdays name and which should be excluded
  exclude:
    - Kongelig
    - Udsendte
    - ReligiΓΈs
    - ALL

  # List of private flagdays
  flagdays:
    # Sensor with a datetime attribute named "date" or a attribute specified under "attribute_names"
    - sensor.birthday_hjaltes_fodselsdag

    # Group of sensors with a datetime attribute named "date"
    - group.birthdays

    # Manual entry with a custom flag, calculation of age (year stated in date) and a high priority (0 = highest)
    - name: Jolly Roger Memorial Day
      flag: Jolly Roger
      date: 10-06-1975
      priority: 2

    # Manual entry with a prolonged event (**date_end**) and custom flag
    - name: Copenhagen Pride Month
      flag: Pride
      date: 01-08
      date_end: 31-08

    # Manual entry with calculation of age (year stated in date)
    - name: Tim Berners Lee Birthday
      date: 08-06-1955

    # Manual entry with calculation of age (year stated in date)
    - name: Ada Lovelace Birthday
      date: 10-12-1815

  # ADVANCED and optional
  # When feeding other sensors or groups of sensor, look for these attribute names.
  # First one found in the sensor attributes of datetime type is used.
  # Default: "date"
  attribute_names:
    - date
    - anniversary_date
  

State and attributes

State is the number of days to the event. image Friendly name is the name of the next flagday.

Attributes

Attribute name Description
name Name of the flagday
flag Name of flag to use
years Age to come, if calculated
flag_up_time Time to hoist the flag
flag_down_time Time to pull the flag
flag_up_time_trigger Trigger to use for flag up
flag_down_time_trigger Trigger to use for flag down
half_mast True/False/Time for full mast
future_flagdays List of flagdays in the future
attribution Name of the creator

About

πŸ‡©πŸ‡° Official flagdays in Denmark with a lot of useful logic and attributes. It is possible to add your own anniversaries πŸŽ‚ or special flags πŸ³οΈβ€πŸŒˆ πŸ΄β€β˜ οΈ

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages