Skip to content

1.0.0

Compare
Choose a tag to compare
@Gluwc Gluwc released this 16 Feb 01:32
· 38 commits to master since this release

Updates

  • Added display_limitconfig option.
  • Added due config option.
  • Added color config option.
  • Added automation config option and sensor attribute.
  • Added timeout_timestamp sensor attribute.
  • Added severity sensor attribute.
  • Added more info pop-up when clicking button title.
  • Severity array is now sorted by it's values.
  • Converted to TypeScript.
  • Code clean-up.

Breaking Changes

  • Removed *_style config options.

Styles config options have been removed in favor of card-mod, which allows restyling of many more elements than this card should support.

style: |
  cb-card-buttontext {
    font-size: 20px;
    color: Red;
  }
  • displayText* config options replaced with text object.

The naming of these config options weren't really in line with the other options. Combining them into an object clears up the total amount of base options and makes it easier to use.

text:
  year: jaar
  years: jaar
  month: maand
  months: maanden
  week: week
  weeks: weken
  day: dag
  days: dagen
  hour: uur
  hours: uur
  minute: minuut
  minutes: minuten
  less_than: minder dan
  ago: geleden
  due_in: over
  over_by: over met
  • severity array updated to use color instead of hue.

Changing this to use color allows for more color options than before.

severity:
  - value: 2 days
    color: Orange
  - value: 3 days
    color: Red
  • severity array no longer requires definition of first color.

The severity array was always a bit confusing since you had to define the start color with a value that didn't do anything. It will now fall back to the color config value whenever it is below the lowest value.
The order of your array entries now also does not matter anymore as they are automatically sorted by value.

color: Green
severity:
  - value: 5 days
    color: Purple
  - value: 3 days
    color: Red
  - value: 10 days
    color: Yellow
  - value: 1 day
    color: Blue
  • visibility_timeout config option renamed to timeout.

The visibility_timeout option was added to be used in automations, however when it was introduced it was called visibility_timeout with the intent to be used in front-end automation. Since this variable is now also being used for other types of automations it has been renamed to match it's purpose.

timeout: 7 days
  • hue and saturation config option replaced with color.
color: '#FFF'
  • removed mode config option.

Added options

display_limit

Limits the display of time to a certain value minutes,hours,days,weeks,months,years.

display_limit: days

due

Sets the card to display the due time based on timeout value set in the config.

due: true

automation

Allows publishing of custom variables to the sensor attributes.

automation:
  example_value_1: as many values
  example_value_2: as you want