Hello!
I have tried to set an icon for switch state, but can’t find a way:
here are top switch (icon) that I need, but bottom I can’t to change
My code:
...........
- entity: switch.72142770a4cf12cf4a59
- entity: switch.plug_158d0002468cef
hold_action:
action: more-info
show_icon: true
show_name: true
tap_action:
action: toggle
type: button
name: Aquarium light
state_icons:
'off': 'mdi:shield-home-outline'
'on': 'mdi:shield-home'
title: Xiaomi
At another Lovelace tab/view it’s look good:
and code for it:
entity: switch.plug_158d0002468cef
hold_action:
action: more-info
show_icon: true
show_name: true
tap_action:
action: toggle
type: button
name: Aquarium
if I put this code to test-screen the result will be same
what I have to change to set icon for Aquarium light?