Sill learning, I was following he instructions in:
https://developers.home-assistant.io/docs/en/frontend_creating_custom_panels.html
Does the folder /panels already exist somewhere in hass.io, or do I just create it from the command line?
Thanks
Sill learning, I was following he instructions in:
https://developers.home-assistant.io/docs/en/frontend_creating_custom_panels.html
Does the folder /panels already exist somewhere in hass.io, or do I just create it from the command line?
Thanks
The panels/
folder should be placed in the config/
folder,
you might have to create the directory if it doesn’t exist.
Thanks, I suspected that. It works as planned.
(And this opens more paths for me to learn).
Like, when does the html file get read? I changed the Hello text from
<p>Hello {{who}}. Greetings from Home Assistant.</p>
to:
<p>Hello {{who}}. \nGreetings from My Home Assistant.</p>
But, even after restarting Home Assistant, the sidebar still displays the original HTML text.
Do I need to do a cold-boot to make changes to the html file?
I’m not sure about that, but can you even use \n
in html?
Don’t know if I can use the escape there, but even with it out, nothing changes. All that’s changed now is from
<p>Hello {{who}}. Greetings from Home Assistant.</p>
to:
<p>Hello {{who}}. Greetings from My Home Assistant.</p>
I still don’t see any change in the sidebar.
Try [br] this is the
Hello {{who}}.[br] Greetings from Home Assistant.
show do this
Hello
Greetings from Home Assistant
Change the [ to a < and the ] to >
I removed the escape character altogether and the line is now:
<p>Hello {{who}}. Greetings from My Home Assistant.</p>
But after restarting Home Assistant, the text still shows the original:
Hello World. Greetings from Home Assistant.
I also hit refresh in case it was a browser cache issue. No change.
I honestly don’t know. I just tried it myself using the example.
After modifying the html it already showed the changes after a refresh or 2.
Thanks myle, works perfectly.
Cool good to see it work that was just a wing it