Device color based on thresholds

Thanks, I edited the message and the title of this discussion and I created a second topic.