Releases: custom-cards/check-button-card
1.3.0
1.2.0
1.1.1
1.1.0
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
1.0.1
1.0.0
Updates
- Added
display_limit
config 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 withtext
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 usecolor
instead ofhue
.
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 totimeout
.
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
andsaturation
config option replaced withcolor
.
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