[JS+Editor Module] Conditional switch button coloring #1768
andarotajo
started this conversation in
Share your Modules
Replies: 1 comment
-
Changelogreserved for future changelogs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Conditional switch button coloring
Version: v1.0
Creator: andarotajo
Important
Supported cards:
Unsupported cards:
This module allows you to change various colors (and optionally opacity) of a switch button based on more or more conditions. The settings can be applied to the card itself or the icon for both OFF and ON states of the switch. Generally, it has the following features:
It's possible to set up multiple sets of conditions using the YAML configuration. To do this, copy the
conditional_colors_1
section replace the number at the end with the next number in sequence.Configure this module via the editor or in YAML, for example:
🧩 Get this Module
Screenshot:
Before posting your module
unsupported
propertyyour_module_key
Beta Was this translation helpful? Give feedback.
All reactions