I have a button that calls a script. Can I set the icon as on state (yellow) as default? It might be very simple or obvious but somehow I can’t find a way to do it.
- type: button
name: Canvas
icon: mdi:vector-square
show_state: true
initial_state: on
tap_action:
action: call-service
service: script.turn_on
service_data:
entity_id: script.canvas
I have tested with show_state or initial_state but it makes no different. Can it be done?
Thanks.