I implemented a sensor using the RESTful sensor type so I can read a value and set it as the state as part of the JSON response.
Now, I’d like to customize a card base on this state.
Specifically, the returned response is numeric and has 4 possible options, so the closest card I could find is the gauge type, and since it has only 3 severities I’ll need to merge two of the states into one severity.
So a question about customizing cards based on state:
- Is there a way to get 4 or more levels of severities with the built-in gauge card type?
- Is there a way to customize other card types like say a button’s icon type or the icon’s color based on the states?
Is this something we can do without referring to 3rd party custom components/cards, and such?
I’m happy with achieving it with code in configuration.yml.