Changing color based on sensor's value #870
Replies: 1 comment
-
Self response, after some more days of research, digging and trying options, so this can be useful for somebody else: Apparently the problem with my code was a combination of:
So, in summary, the following code worked:
|
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
-
Hi,
I'm trying to change the color of the button based on a sensors' value. I've been reading around, but I couldn't make it to work. Right now I'm using the following code:
Any idea on what can be wrong?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions