My floorplan isn’t opening (anymore).
This is my error ( on the floorplan) : Error loading stylesheet
this is my floorplan.yaml
image: /local/custom_ui/floorplan/floorplan.svg
stylesheet: /www/custom_ui/floorplan/floorplan.css
# These options are optional
# warnings: # enable warnings (to find out why things might ot be working correctly)
# pan_zoom: # enable experimental panning / zooming
# hide_app_toolbar: # hide the application toolbar (when used as a custom panel)
# date_format: DD-MMM-YYYY # Date format to use in hover-over text
groups:
- name: temperatuur
entities:
- sensor.temperature_158d00022c8b2be
text_template: '${entity.state ? Math.ceil(entity.state) + " °C": "undefined"}'
Just applied a fix (Floorplan v1.0.13) for anyone who was getting multiple instances of the floorplan appearing in the associated state card whenever you navigated back to that page. This new version ensures that the floorplan is created only once within the state card.
Just updated to HA 0.70.1 and getting errors, repeated every 30 secs:
2018-06-01 17:02:01 ERROR (MainThread) [frontend.js.latest.201805310] http://192.168..:8123/local/custom_ui/floorplan/ha-floorplan.html:375:25 Uncaught TypeError: Polymer.dom is not a function
Just updated to 70.1 for HA and 1.0.13 for floorplan (previously on 69 and 1.0.8) and I am seeing the following error in home assistant logs when trying to access my panel:
2018-06-01 14:27:20 ERROR (MainThread) [frontend.js.es5.201805310] https://url/frontend_es5/custom-elements-es5-adapter.js:1:11 Uncaught TypeError: Class constructor HaPanelFloorplan cannot be invoked without 'new'
Also getting the following error in the developer console:
Uncaught TypeError: Class constructor HaPanelFloorplan cannot be invoked without 'new'
at new j (custom-elements-es5-adapter.js:4)
at i (app-3904d93428b1e0b6438ee5d46a3ed872.js:2)
at app-3904d93428b1e0b6438ee5d46a3ed872.js:2
I updated the html files in both the “panels” folder as well as the “custom_ui” folder.
Tested on chrome and fully kiosk browser with cleared cache. It still works in the HA app for iPhone, but does not work when I go navigate to the floorplan from safari on the iPhone.
@SirBronski It looks like the error is talking about an older version of Floorplan. As you noted, the new version doesn’t refrence Polymer.dom in any way. Can you try on another browser or device, just to see if your browser caching is the problem?
@shire210@Kyle I haven’t been able to reproduce that issue. Can you check your frontend: configuration and paste it here? This is what mine looks like:
You can ignore the last line if you don’t use Floorplan as a state card, but try setting the first line in your config to what I have above, because your error looks like it’s using an older standard of JavaScript (ES5) whereas it should be using the latest. Let us know how you go.
Not sure if this has been posted already (can’t find anything via the search function), but I am one of those people who run multiple panels and to make it work I made the following changes to the panel/Floorplan.html, which I in turn have renamed bottenvaning.html and ovanvaning.html:
On line 3 and 38 I changed ha-panel-floorplan to ha-panel-ovanvaning and ha-panel-bottenvaning.
On line 37 and 75 I renamed the class from HaPanelFloorplan to HaPanelOvanvaning and HaPanelBottennvaning respectively.