@iantrich, ignore the previous PR, I’ve issued a new one with more stuff but some breaking changes (for a better future
)
If you could have a look and let me know what you think please.
Breaking Changes
-
color_offis now deprecated, usestateinstead if you want to redefine the color whenoff
Instead of:
Use:- type: "custom:button-card" name: Switch entity: switch.main color: red color_off: green
Or:- type: "custom:button-card" name: Switch entity: switch.main color: red state: - value: 'off' color: green- type: "custom:button-card" name: Switch entity: switch.main state: - value: 'off' color: green - value: 'on' color: red -
default_coloris deprecated as it seems redundant withcolor(when light is not rgb). For rgb light, you can still define a specific color for theoffstate for example. -
servicehas been deprecated in favor oftap_action, see below -
actionhas been replaced bytap_actionto mimic the default button card and allow for future options likehold_action -
more_inforenamed tomore-info,more_infostill works -
servicenow takes the full service namelight.turn_on - Add default entity icon support, Fix #53, add
show_iconto decide whether to display the icon or not
Others
- blink animation support
-
tap_actionsupportsnavigate. Fix #75 -
Support for style definition in state. Fix #41
- Disable click when not needed
- Refactored the code for faster rendering
- Documentation update
- Fix #71
Thanks.