Horizontal line state card for Home Assistant. Used to separate entities in a group .
Maybe some of you are interested. I use it to organize my large groups.
I canāt get this to work in firefox.
One time it shows up with no line and clicking on it shows the state card, the other time it shows multiple lines and for every line an error in the log.
EDIT:
In chrome it shows a line, but also an error on page reload. 2018-02-10 20:49:44 ERROR (MainThread) [frontend.js.latest.201801300] http://192.168.77.67:8123/local/custom_ui/state-card-hline.html:46:26 Uncaught TypeError: Cannot read property 'width' of undefined
Should be fixed now. There was a small bug in my code.
Replace the state-card-hline.html with the new one and it should work. I was just asking for the config options under the customize section if your sensor. You can customize the line as you wish.
Should this work in OSX Safari (version 11.0.3) as well? Doesnāt seem to work for me with the same setup as above. I see a taller gap between the items in the group where the line ought to be and when I click there I see the line status panel popup.
Donāt see any errors in the safari console or HA logs and config validation is ok. Tried with both config options and without and also different colour themes (just-in-case) as well as default and still no luck. Probably something Iām doing wrong - will dig around some moreā¦
Thanks, unfortunately Iām getting the following syntax error:
custom_ui%2Fstate-card-hline_es5.html.js%0A:15:0
Feb 15 18:53:43 raspberrypi hass[7951]: SyntaxError: Unexpected token ';'. Expected '}' to end an object literal.
It doesnāt show anything. Also when I open the HTML in IE or firefox it is just a blank white page.
Without customization, I can see the sensor on its proper place, but when I call the html, I see nothing, it is completely blank.