Ok, are you using state card or custom panel? If you are using state card, I can`t help you, since I just use custom panel. If you use or will try custom panel I can meaby help you. First of all, have you edited some of the files?
@Zepixir so I have just tried on firefox using https://XXX.duckdns.org and it works fine with no issues but the errors are still there.
I am using custom panel.
the errors I am getting are continuous:
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/lib/jquery-3.2.1.min.js:7:1 Uncaught SyntaxError: Unexpected token <
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/lib//moment.min.js:7:1 Uncaught SyntaxError: Unexpected token <
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/lib/svg-pan-zoom.min.js:7:1 Uncaught SyntaxError: Unexpected token <
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/ha-floorplan.html:156:36 Uncaught ReferenceError: moment is not defined
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/ha-floorplan.html:156:36 Uncaught ReferenceError: moment is not defined
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/ha-floorplan.html:156:36 Uncaught ReferenceError: moment is not defined
ERROR (MainThread) [frontend.js.es5.201802090] https://XXX.duckdns.org/local/custom_ui/floorplan/ha-floorplan.html:156:36 Uncaught ReferenceError: moment is not defined
I have changed the SVG file just as a test put a circle and set the entity id of my light and in my floorplan.yaml I have only set lights.
Ok, can you change javascript to latest, so you have the same as me? And just to be 100% sure, just use the original floorplan.yaml file with no editing.
And your panel_custom looks like this?
And of course, you have tried to delete all the browser data? The three checkboxes? (you need to remember your password on homeassistant) AND after deleting the browser data, close the browser, then re-open the browser.
I am no expert at this, but in my experience it seems like the html file is not loaded correctly by the browser if you don’t clear it’s cache, thus resulting in errors. So everytime you change or paste a new html file, you should clear the cache and relaunch the browser(s) you want to use.
Ive tried adding this to my svg for hiding two layers and showing one… > <g > id=“media_button” > transform=“matrix(0.99939487,0,0,1.000055,-53.913191,-4.5996255)” > inkscape:label="#g1912" > onclick=“document.getElementById(‘layer10’).setAttribute(“opacity”,0),document.getElementById(‘layer5’).setAttribute(“opacity”,100),document.getElementById(‘layer11’).setAttribute(“opacity”,0);”><rect > transform=“matrix(0.55586133,0,0,0.52062657,61.5333,222.44345)” > id=“rect28-6” > height=“80” > width=“150” > ry=“15” > rx=“15” > y=“457.74301” > x=“154.19669” > style=“fill:url(#button_surface-9);stroke:#360000;filter:url(#virtual_light-3)” /><text > style=“font-weight:500;font-size:11.87037373px;font-family:Tahoma;fill:#ffffff;stroke-width:0.59351867” > id=“text30-3” > font-weight=“500” > font-size=“20” > y=“485.20575” > x=“175.01678”>Media >
works fine when testing just the svg file in a browser, but shows an error in homeassistant:
Hi All,
Loving the ideas in this thread.
Now trying to add a now playing section linked to spotify. (i intend it to only show when state: playing)
I want:
Image ${entity.attributes.entity_picture} - Track Title ${entity.attributes.media_title}
Artist ${entity.attributes.media_artist}
Playing on: ${entity.attributes.source}
I see some people have achieved close to this, and just wondering how you link the attribute to the svg?