Replies: 2 comments 4 replies
-
You can’t use that tutorial as that guy is using the picture elements card. See our example here https://experiencelovelace.github.io/ha-floorplan/docs/example-light/ Look through the discussions on GitHub for someone that may have done something similar to what you want. You might also find info in the HA forums just make sure you are looking at posts regarding the current version of floorplan as the syntax changed when ha-floorplan for Lovelace was released. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your message. I have see this tutorial, but I don't succes to find the good solution to integrate him. I have try like that, but it don't work and I don't understand how add differently with the exemple. I have also watch the forum, but I find only without svg or with the old solution and I'm a little bit confused. My test : YAML:
And the same with my entity but also with my entity transfert in elements. Have you an idea of the problem or the solution ? |
Beta Was this translation helpful? Give feedback.
-
Hello,
First of all, thank you for the help you provided me last time.
However, I am now facing new challenges with my project and I could use your assistance to shed some light on them. My plan is working correctly: the YAML and CSS are well synchronized, and the lights turn on according to the state of my lamps. Nevertheless, I am stuck on a specific feature: transforming the color of each lamp directly onto the PNG images of my Floorplan.
After attempting to integrate information from the documentation, I found this tutorial which seems to be the most comprehensive on this subject. And I tried to add:
But this does not seem to work with rules, it seems to only work for individual PNGs with the element property, and so I don't see how to do it in my case. Is there another way to achieve this with the code I have created?
I put the errors of this code at the end of my post.
YAML :
CSS :
Errors :
Thank you very much for your help, and I hope I have not misunderstood again or made a silly mistake. Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions