Comments (9)
Hi, you should be more specific here. What is the shell command that you are trying to use? What are you trying to achieve, what kind of optimization?
from emhass.
Shell command from instructions in Home Assisstant.
shell_command:
dayahead_optim: curl -i -H "Content-Type: application/json" -X POST -d '{}' http://localhost:5000/action/dayahead-optim
publish_data: curl -i -H "Content-Type: application/json" -X POST -d '{}' http://localhost:5000/action/publish-data
from emhass.
Ok, you'll need to provide more information, otherwise it'll be very hard to help you solve this. Please post the complete logs from the "Log" pane in the add-on.
This fails when running the "dayahead-optim" or the "publish_data"?
May be share you yaml add-on configuration...
from emhass.
Hi, just closing this as no more information was provided and impossible to solve (if it is a real issue) as it is.
from emhass.
when entering the shell_command statement into Visual studio, you get the following error message displayed: incomplete explicit mapping pair; a key node is missed.
Also the check config yaml element shows: Error loading /config/configuration.yaml: mapping values are not allowed here
the provide shell code command does not work in latest home assistant 2022.8.2
from emhass.
Hi, I'm just reopening this issue to see if we can get somewhere on this issue.
I have Home Assistant 2022.8.3 installed, the lastest version, and the shell_commands are working just fine.
What I can't understand is what are you trying to achieve here, in what context this is not working?
Is the EMHASS add-on loaded and running?
Maybe I can just repeat the same questions that remained unanswered with @tomekl1978:
Please post the complete logs from the "Log" pane in the add-on.
This fails when running the "dayahead-optim" or the "publish_data"?
May be share you yaml add-on configuration...
There is a lot of information missing here in order to try to help you.
from emhass.
Got it fixed, you have to remove the space after the Content-Type: application does not work, the below commands work, please just adjust the documentation.
thx
shell_command:
dayahead_optim: curl -i -H 'Content-Type:application/json' -X POST -d '{}' http://localhost:5000/action/dayahead-optim
publish_data: curl -i -H "Content-Type:application/json" -X POST -d '{}' http://localhost:5000/action/publish-data
from emhass.
Ok perfect. Thank you.
I actually realized that the documentation was outdated, I actually implemented those shell_command
using this syntax:
shell_command:
dayahead_optim: "curl -i -H 'Content-Type: application/json' -X POST -d '{}' http://localhost:5000/action/dayahead-optim"
So I wasn't having any problem with that.
And your solution is also valid I guess.
I just updated the documentation
from emhass.
I tried that as well, but it did not work for me. Thank you for your great tool! I was trying to find exactly what you are doing, as this is last bit to fully automate and save energy.
from emhass.
Related Issues (20)
- Missing EMHASS_button.svg HOT 2
- Negative production prices HOT 28
- day-ahead optimisation fails since 0.9.0 HOT 6
- Docker not starting, web_server.py: error: unrecognized arguments: python3 src/emhass/web_server.py HOT 2
- Error while using forecast.solar (free version) HOT 2
- Repository structure v0.9.1 HOT 2
- Feature request: support power input sensors in kW HOT 6
- MPC optimization KeyError: 'inverter_is_hybrid' HOT 3
- Add: Huawei SUN2000-3/4/5/6/8/10KTL-M1 (High Current Version) into inverter database HOT 3
- Documentation: The meaning of alpha and beta values is reversed HOT 1
- Documentation update to help find compatible modules and panels HOT 2
- 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 2
- Feature request: Provide p_hybrid_inverter as a sensor HOT 1
- 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
- Unable to connect to home assistant HOT 2
- Warning: deprecated lags_grid argument HOT 1
- Feature Request: Pd_max/Pc_max as runtime parameters
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.