Skip to content

Releases: custom-cards/check-button-card

1.3.0

22 Dec 18:23
d8350ca
Compare
Choose a tag to compare

Convert timestamp format from unix to ISO8601 for HA 2021.12.x compatability

1.2.0

24 Aug 22:34
Compare
Choose a tag to compare

Updates

  • Added locale config option. #15

1.1.1

29 Mar 23:03
Compare
Choose a tag to compare

This update unifies some of the card style to work better with the default lovelace layout.

Updates

  • Set default border-radius to use theme variable.

Fixes

  • Set default border-radius to use theme variable (ha-card-border-radius).
  • Removed default ha-card padding.

1.1.0

08 Mar 12:06
Compare
Choose a tag to compare

Breaking Changes

This update will break the current sensor config, however the card should give you the option to update to the new config.

Updates

  • Added unit_of_measurement config option.
  • Added icon config option.
  • Added device_class to sensor attributes.
  • Added timeout_seconds to sensor attributes.
  • Removed default unit_of_measurement from sensor attributes.

1.0.2

24 Feb 10:57
a2f4cd4
Compare
Choose a tag to compare

Updates

  • Added more_than option to text config option.
  • Months will now be displayed up to 19 months and more than N year(s) when over 19 months.

1.0.1

18 Feb 21:09
Compare
Choose a tag to compare

Fixes

  • Fixed card error when no severity is defined.

1.0.0

16 Feb 01:32
Compare
Choose a tag to compare

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

0.2.1

14 Feb 00:20
Compare
Choose a tag to compare

Fixes

  • Fixed card config injecting entries into the lovelace config.

Updates

  • Added console version info.

0.2.0

26 Nov 09:37
a6918fc
Compare
Choose a tag to compare

Updates

  • Added localization options.

0.1.2

16 Nov 14:45
1401b76
Compare
Choose a tag to compare

Fixes

  • Removed version requirement from MQTT topic.