Hi,
- On my dashboard I am trying to change the color of my vacuum icon based on the status. I can adjust the color for status “docked”
- type: conditional
conditions:
- entity: vacuum.roborock_s6_maxv
state: docked
elements:
- type: state-icon
icon: mdi:robot-vacuum-variant
entity: vacuum.roborock_s6_maxv
action: none
tap_action:
action: navigate
navigation_path: /dashboard-ipad/staubsauger
hold_action: none
style:
top: 10%
left: 22%
transform: translate(-50%, -50%) scale(2.5, 2.5)
'--paper-item-icon-color': black
opacity: 0.8
filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.3))
But when I use the same code for example for the status “cleaning”, it does not work.
None of the following codes works for the color.
- type: conditional
conditions:
- entity: vacuum.roborock_s6_maxv
state: cleaning
elements:
- type: state-icon
icon: mdi:robot-vacuum-variant
entity: vacuum.roborock_s6_maxv
action: none
tap_action:
action: navigate
navigation_path: /dashboard-ipad/staubsauger
hold_action: none
style:
top: 10%
left: 22%
transform: translate(-50%, -50%) scale(2.5, 2.5)
'--paper-item-icon-color': red
'--paper-item-vacuum-color': red
'--state-icon-on-color': red
'--state-icon-off-color': red
'--state-vacuum-on-color': red
'--state-vacuum-off-color': red
color: red
opacity: 0.8
filter: drop-shadow(5px 5px 5px rgba(0,0,0,0.3))
Any suggestions on how to change the color?
- Also I want to pause the vacuum when clicking on an icon. I don’t get this to work either. Whats wrong here?
- type: state-icon
entity: vacuum.roborock_s6_maxv
icon: mdi:pause
tap_action: call-service
service: vacuum.pause
hold_action: none
style:
top: 76%
left: 68%
transform: translate(-50%, -50%) scale(3, 3)
'--paper-item-icon-color': black
Thanks.