Looking to change background Color of Sub-Button based on State (Temperature) #1316
Replies: 3 comments 2 replies
-
|
#1253 |
Beta Was this translation helpful? Give feedback.
-
|
HyperCriSiS, thank you. This is a lot of code, and far more granular than I am looking to do. I am just wanting something simple. Under 100=Green, Over 155= Red, and 101 - 154 = Orange. The code I posted I found on someone else's solution for something different. I was just trying to reuse it for my thing. |
Beta Was this translation helpful? Give feedback.
-
|
If you just use "state", this refers to the state of the main entity, not the one of the respective sub-button. This is a working example for a sub-button: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Goal
Working on a dashboard for some devices rack mounted in my basement. In this case a Synology NAS.
I'm wanting to change the color of the background of a sub-bubble based on the temperature of the server.
I found the code I am using on another example here and trying to modify it. I will be honest, I'm very new to this.
Want to change the background Green under 110 and Red over 155 and orange between the two.
Source Yaml
Which step did you already try?
Problem
It does not work. Any help would be grateful. I want to solve this before I go and add it to the disks.
Read the documentation
Beta Was this translation helpful? Give feedback.
All reactions