In my floorplan lets say I have 2 lights controlled by one switch.
In my dashboard setup is this the correct way? Do I add 1 entry for each light in my svg? is there a better way?
- entity: switch.office_light
element: switch.office_light
state_action:
action: call-service
service: floorplan.image_set
service_data: /local/floorplan/home_simple/light_${entity.state}.svg
tap_action: toggle
- entity: switch.office_light
element: switch.office_light1
state_action:
action: call-service
service: floorplan.image_set
service_data: /local/floorplan/home_simple/light_${entity.state}.svg