Hi have been trying to get icons to spin unfortunately Im having no luck
type: ‘custom:button-card’
show_entity_picture: true
'state:
- value: ‘on’
styles:
icon:
spin: true
tap_action:
action: toggle
entity: switch.sonoff_1000feaf04_1
icon: ‘mdi:fan’