Closed vdiogo closed 1 year ago
Half of your error messages are from trying to publish data before a correct optimization call.
When you call the optimization the messages to understand are these:
ERROR in retrieve_hass: The retrieved JSON is empty, check that correct day or variable names are passed [2023-02-11 14:13:55,046] ERROR in retrieve_hass: Either the names of the passed variables are not correct or days_to_retrieve is larger than the recorded history of your sensor (check your recorder settings)
So check that. The names of your sensors and that you have enough data. Otherwise there is a problem with your configuration. Share it to debug it and state some info about your system: type of HA install, your machine arch, etc
Thank you for the prompt reply. I installed EMHASS 3 days ago on a fresh RPI3B+ HA Home Assistant Supervised where I only enabled my PV production sensor and Energy consumption sensor (without discounting the deferrable load as I'm still looking into which appliance to "trigger" the optimization result - hope this makes sense). In the meanwhile I see that my PV sensor stopped sending results (claiming too many API queries, after which I adjusted the poll from 60 to 120 seconds). So it may be that I just don't have enough data to publish the optimization results so will give it a couple more days and check again :)
Ok it may be that. Also as you are using the supervisor then leave the hass_url
and long_lived_token
parameters to empty
.
Feel free to reopen if this wasn't solved with the proposed solution
I have setup the configuration parameters in the add-on such as:
And when accessing the user interface, none of the options returns a value
I get this in the logs, which I'm not able to understand: