How I have my Floor plan working with a few light bulb images I want to set the whole room area as a bulb and have that change colour to show the light state. I guess i am missing something obvious here but do I just draw a shape in Inkscape and set its properties to the bulb Entity ID? when trying this I see nothing on the floorplan, am i doing it wrong?
If you want the room to change color based on whether the light is on or off, you need to draw a shape to match the shape of the room, move the new shape to the top and name it with the entity ID of the light bulb.
Trying to get started with floorplan and used pkozul tutorial. I am also getting a double and sometimes triple image. Once refreshed they are gone for while.
ok here is the user icon - i made them in powerpoint and exported to jpg. then imported to the svg (text is a different layer). you should be able to do the same. Linked in picture is round, but powerpoint has a nice auto crop round feature too if not. i would edit in PPT (unless your a artist) then save the png
The temperature is just 2 circles and text in the middle - the color is set from css based on temp being high or low. probably take longer to copy than just drag 2 circles out and add text.
Loving the floorplan and got it working fairly pain free (once i read about firefox on desktop not working).
How can i get the colours of my lights to reflect the colour they are set to (like on the default states page instead of in customs css)?
I have the states recording with the default example and CSS:
I’ve been able to get everything working however I can’t get the floorplan.svg to show. All I get is the below screen shot. I’m trying to get the default one to work before I start creating my own.
I’ve gone through the thread and thought I’ve tried everything but I’m probably missing something.
Where local is really the www dir
/www/custom_ui/state-card-floorplan.html
/www/custom_ui/floorplan/floorplan.css, floorplan.svg, ha-floorplan.html
www/custom_ui/floorplan/lib/jquer-3.2.1.min.js, moment.min.js, svg-pan-zoom.min.js
and
floorplan.yaml in the config dir.
Sensors, groups, and frontend setup in config. And you are using chrome browser.
I struggled with this for a while too.
Assuming your setup is correct, you may want to try:
adding your Floorplan group to be nested in another group (with only that Floorplan group to test)
try other javascript version, i.e. http://localhost:8123/states/group.floorplan?latest, etc.
javascript_version
(string)(Optional)Version of the JavaScript to serve to clients. Options: es5 - transpiled so old browsers understand it. latest - not transpiled, so will work on recent browsers only. auto - select a version according to the browser user-agent. The value in the config can be overiden by putting es5 or latest in the URL. For example http://localhost:8123/states?es5
Default value: auto