Comments (2)
Thank you for the help.
I tried your suggestions and in the end it was just the foward slash /
at the end of the address :D
from emhass.
I don't know if this helps but I just tried:
Home Assistant
# modified version of: https://www.home-assistant.io/installation/linux#install-home-assistant-container
# /test being my temp config directory
docker run -d -p 8123:8123 --name homeassistant -e TZ="Europe/Paris" -v $(pwd)/test:/config ghcr.io/home-assistant/home-assistant:stable
EMHASS
# copied config_emhass.yaml and secrets_emhass.yaml (from secrets_emhass(copy).yaml) into /test2
docker run -it -p 5000:5000 --network=host --name emhass-container -v $(pwd)/test2/config_emhass.yaml:/app/config_emhass.yaml -v $(pwd)/test2/secrets_emhass.yaml:/app/secrets_emhass.yaml davidusb/emhass-docker-standalone:latest
These docker runs are just minimal, your volume mounts may be different.
It is my understanding that the EMHASS container would need to have --network=host
in order to access localhost
. (Which I believe your already doing in your Docker compose)
Its my understanding that, by default, Docker runs its networking in bridge mode. A alternative method would be to obtain the Home Assistant bridged ip address and pass that into the EMHASS container. (In theory bypassing the need for network=host)
An example:
# grab the ip address of the running homeassistant
docker exec -it homeassistant ip addr
In my case it was 172.17.0.3
with eth0@if23
network interface, then pass this ip address into the EMHASS secrets.
secrets_emhass.yaml
# Use this file to store secrets like usernames and passwords.
# Learn more at https://home-assistant.io/docs/configuration/secrets/
hass_url: http://172.17.0.3:8123/
long_lived_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI2Y2FkYWQwMTM4MWY0ODM4YTVhYmU3ZGQ1YmUxMzE0YyIsImlhdCI6MTcxODI4MDMzMywiZXhwIjoyMDMzNjQwMzMzfQ.EvfjVXS7KX15KrfATvzlIm06e-U0mXjDdSF0lm7V5_0
time_zone: Europe/Paris
lat: 45.83
lon: 6.86
alt: 4807.8
solcast_api_key: yoursecretsolcastapikey
solcast_rooftop_id: yourrooftopid
solar_forecast_kwp: 5
Note: you may need a foward slash /
at the end of your address: http://localhost:8123
to http://localhost:8123/
Other than maybe obtaining another Long-lived access tokens
token, and testing a new, I am not quite sure whats going on.
from emhass.
Related Issues (20)
- Documentation: The meaning of alpha and beta values ββis reversed HOT 1
- Documentation update to help find compatible modules and panels HOT 4
- Data posted via home assistant is different to what appears in the EMHASS logs HOT 6
- Infeasible result with 0.10.1, optimal with 0.9.1 HOT 4
- Feature request: Provide p_hybrid_inverter as a sensor HOT 2
- Sensor unit: Unit is missing for 'Total cost function value' HOT 1
- load_cast_forecast nordpool fails, HOT 7
- pv_forecast is not aligning with JSON input for naive-mpc-optim command HOT 4
- Warning: deprecated lags_grid argument HOT 1
- Feature Request: Pd_max/Pc_max as runtime parameters HOT 3
- 400 error on call HOT 1
- Feature Request: Support solcast/Forecast.Solar
- Feature Request: Support dynamic electricity prices HOT 4
- Custom machine learning forecast model predict HOT 1
- Solcast shows values at night HOT 4
- Optimisation at times exceeds p_nom for deferrable loads
- Cannot install add-on HOT 4
- Feature request: minimum continous runtime for each deferrable load HOT 1
- Same as 328 - missing image update to0.10.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emhass.