Hello, I want to change the color based on the eta to home. I want to get it so when the value ios less than 15 its green, less than 45 orange and more than 45 red. This is my code. How do I add that?
type: entities
title: ETA
entities:
- entity: sensor.here_travel_time_duration_in_traffic
- entity: sensor.here_travel_time_distance
- entity: sensor.here_travel_time_duration_in_traffic_2
- entity: sensor.here_travel_time_distance_2
- entity: sensor.here_travel_time_duration_in_traffic_3
- entity: sensor.here_travel_time_distance_3
- entity: sensor.here_travel_time_duration_in_traffic_4
- entity: sensor.here_travel_time_distance_4
state_color: true
view_layout:
position: sidebar