Floorplan for Home Assistant

@Thorbeen Just updated some of the code to keep in sync with the HA 0.70 changes.

Can you try Floorplan v1.0.10?

https://raw.githubusercontent.com/pkozul/ha-floorplan/master/www/custom_ui/floorplan/ha-floorplan.html

Using that HTML produces this error message:

Uncaught ReferenceError: className is not defined
URL: http://<HA IP>:8123/local/custom_ui/floorplan/ha-floorplan.html
Line: 593, column: 12
Error: {}

Exact same error with mine - HA 0.70

This is what custom panel throws as an error :

Uncaught ReferenceError: className is not defined
URL: http://:8123/local/custom_ui/floorplan/ha-floorplan.html
Line: 593, column: 12
Error: {}

Having said do, custom state card throws below being different than above;

Uncaught ReferenceError: className is not defined
URL: http://:8123/frontend_latest/app-653721033e62144d6a686dab25ef1429.js
Line: 2, column: 12049
Error: {}

@Uns which browser are you using?

I also am trying v1.0.10 and receiving the same error shown below. I am still on HA v0.67.1 however, not sure if that should matter. I am using chrome.

Uncaught ReferenceError: className is not defined
URL: http://:8123/local/custom_ui/floorplan/ha-floorplan.html
Line: 593, column: 12
Error: {}

OK, found a bug and now fixed. Try Floorplan v1.0.11.

https://raw.githubusercontent.com/pkozul/ha-floorplan/master/www/custom_ui/floorplan/ha-floorplan.html

1 Like

Hmmm, now I have this error:

Uncaught ReferenceError: imageUrl is not defined
URL: https:/redacted/local/custom_ui/floorplan/ha-floorplan.html
Line: 449, column: 22
Error: {}

OK, try Floorplan version: 1.0.12 :slight_smile:

1 Like

That seems to have worked.

Thanks!

1 Like

Hi pkozul

This fixed it for me and 0.70 :slight_smile:

Love floorplan just one issue, I’m using the camera fork and the to display feed from camera, problem is the camera doesn’t refresh and just stays the same image unless I refresh the page. do you think this is possible to fix maybe have similar to the HA front-end 10 second intervals ?

thank you

Updated to 1.0.12, and now get the following error:

Uncaught TypeError: Cannot read property ‘entities’ of null
URL: http://redacted/local/custom_ui/floorplan/ha-floorplan.html
Line: 135, column: 60
Error: {}

I have updated to 0.70 Hass.io and version 1.0.12 of FloorPlan but getting this error:

https://my.website.org/local/custom_ui/floorplan/ha-floorplan.html:375:25 Uncaught TypeError: Polymer.dom is not a function

What does that mean?

Its to do with changes to custom-ui in the new update

If you have updated to latest ha-floorplan.html (linked above) and cleared cache and its still doing might have to wait for a fix. I’m using hassio 0.70 and updated to latest floorplan and its working for me, I’m using panels not state cards though.

I have another issue, not sure if its HA 0.70 or 1.0.12 floorplan related, but my weather Images are’nt loading anymore, see image below

The grey squares are supposed to be the weather icon SVG’s both are sunny, you can see one is working but it still shows the grey rect below (didn’t previously) The second weather icon doesnt show at all bottom right corner.

This (1.0.12) has fixed the issue for me (Chrome) - after clearing browser cache. Thanks again for the great work.

Uncaught TypeError: Polymer.dom is not a function

I was also getting that error with the same setup. Let me second the suggestion that you clear your browser cache and reload. Worked for me.

I have updated to 1.0.12 and cleared my cache and am still receiving the following error. any ideas?

Uncaught TypeError: Cannot read property ‘entities’ of null
URL: http://redacted/local/custom_ui/floorplan/ha-floorplan.html 1
Line: 135, column: 60
Error: {}

Have you tried going to https://github.com/andrey-git/home-assistant-custom-ui and getting the newest files. This was what fixed it for me. Going to this link and installing the new files from the 20180528. Seemed to be an issue with the CustomUI needing an update

Anyone else have issues with floorplan opening in iOS app but not allowing to turn devices on or off it is just a dead picture layout that can be zoomed in and out on?

1 Like