Multiple light bulb in floorplan #93
Replies: 2 comments 1 reply
-
|
Hi sorry for the late reply. I am not sure I have the answer but will try and help. What happens if you take |
Beta Was this translation helpful? Give feedback.
-
|
Yes, good catch. The Light example was really geared towards a single light. We have enhanced the example so it now shows two lights working independently: https://experiencelovelace.github.io/ha-floorplan/docs/example-light/ To make it work, we had to create a new instance of
Each of the above gradients contains a
And so the rule now looks like this: - entities:
- light.kitchen
- light.office
tap_action:
action: navigate
navigation_path: /lovelace/lights
state_action:
- action: call-service
service: floorplan.style_set
service_data: |
>
var elements = [
`${entity.entity_id}`,
`${entity.entity_id}.gradient_color_0`,
];As you can see above, the IDs of the stop colours are determined dynamically, based on the entity ID. Let us know how you go with getting multiple lights working in your scenario. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm not sure how to use multiple bulbs in one floor plan.
I use example as base for my floor plan
And in SVG I used

and it it works well.
But when I tried add new light
it use always gradient of first bulb
I tried also use
but I was without any luck and it stopped working.
Thanks
Michal
Beta Was this translation helpful? Give feedback.
All reactions