Hi,
I am working hass 0.21.0.
I am trying to playing around with some very basic html changes (like modify some sidebar labels or add an image in the ‘Home Assistant’ title area).
I already downloaded the forntend code with
`[HASS_INST_DIR]/script/setup`
So here is what I did:
-
Configured configuration.yaml with
http: development: 1
-
Started the js_dev script:
cd [HASS_INST_DIR]/homeassistant/components/frontend/www_static/home-assistant-polymer && npm run js_dev
-
Modified the involved polymer html file
-
Launched hass with ui
hass --open-ui
I expected to see my changes at this point.
The problem is that
-
The ui displayed the following Error
"Home Assistant had trouble connecting to the server. TRY AGAIN"
-
Looking at the google inspector, it reported two 404 errors:
404 -> http://192.168.1.3:8123/static/home-assistant-polymer/src/home-assistant.html 404 -> http://192.168.1.3:8123/static/home-assistant-polymer/build/_core_compiled.js
The file
[HASS_INST_DIR]/homeassistant/components/frontend/www_static/home-assistant-polymer/src/home-assistant.html
exists on the filesystem.
The file
[HASS_INST_DIR]/homeassistant/components/frontend/www_static/home-assistant-polymer/build/_core_compiled.js
does not exist on the filesystem.
Questions
What may the problem would be?
Am I missing something in the frontend development pipeline process?
Why is not at least home-assistant.html loaded, considered it is present on the filesystem?
And why the is the page requesting _core_compiled.js, which is not present at all on the filesystem?
Thank you,
Andrea
[EDIT: SOLVED!]
Ok I solved it, my fault:P
The problem was that I installed the hass distributed production application (pip3 install homeassistant) into the same python virtualenv where I had already installed my hass development environment (via git pull etc…).
This caused the hass
command to be ovverriden and to point to the newly installed production application.
And since the production application of course does not contain the polymer frontend repository to which home assistant refers when working in http: development: 1 configuration scenario, the frontend web app could not find the polymer related source files.