You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
Browsing to 192.168.2.28:5000 and clicking 'Day-ahead optimization' should yield some result other than can't connect to Home Assistant.
Home Assistant installation type
Home Assistant Core via Docker compose
Your hardware
Raspberry Pi 4 (4 GB) running: Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
EMHASS installation type
Docker Standalone
Resolution
Adding a final slash to the hass_url like http://192.168.2.28:8123/ after checking the source code, made EMHASS successfully connect to Home Assistant.
Suggestion: change line 97 to /api/config instead of api/config, and/or validate the URL instead prior to using it (whether it ends with a backslash?).
The text was updated successfully, but these errors were encountered:
Describe the bug
EMHASS can't connect to Home Assistant, like not at all, due to user error.
To Reproduce
Follow the steps to run EMHASS in a Docker container as explained in Method 2.
I used Docker compose in order to get EMHASS running as follows:
secrets_emhass.yml
contains the following:Expected behavior
Browsing to
192.168.2.28:5000
and clicking 'Day-ahead optimization' should yield some result other than can't connect to Home Assistant.Home Assistant installation type
Your hardware
Linux raspberrypi 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
EMHASS installation type
Resolution
Adding a final slash to the
hass_url
likehttp://192.168.2.28:8123/
after checking the source code, made EMHASS successfully connect to Home Assistant.Suggestion: change line 97 to
/api/config
instead ofapi/config
, and/or validate the URL instead prior to using it (whether it ends with a backslash?).The text was updated successfully, but these errors were encountered: