Pasting it into the configuration.yaml file gives me this error:
Failed to call service homeassistant/restart. The system cannot restart because the configuration is not valid: Platform error calendar.rest - No module named ‘homeassistant.components.rest.calendar’
Failed to call service homeassistant/restart. The system cannot restart because the configuration is not valid: Integration error: solarman - Integration ‘solarman’ not found.
I haven’t been around so haven’t been able to respond to questions sorry.
My sensors stopped working this weekend, I suspect this is due to not using the refresh token. Does anyone who has already used this guide understand refresh tokens? At the moment we will all need to generate new tokens but it would be better if I can work out how to do it automatically.
Indeed, I had the same that the token was expired. Now I am trying to make it work with this project below, so you don’t have to care about the token refresh. I have it partially working with the docker container.
Many thanks for sharing your project. I am experimenting with your docker image and retrieve data. The container log shows:
INFO:root:2021-12-13 21:25:37 - 1.0 kWH day total and currently 0.0 W
etc… but no errors
The MQTT explorer shows only:
solar/energy
solar/power
I was expecting to see more topics.
Do you have any idea`s what could cause this?
Where can I see more log information? I did also enable debug in config.json but don`t know where to look for those logs.
@Damian_Nelson, after spending much time trying to make the docker container working I gave up. I use the python script instead and this works perfect!
UPDATE: Found that the docker container also works perfect. I tested it with the exact settings as described in github project page.
Thank you skully for this guide. Quite new with HA, but your guide put me through!
Probably 1 stupid question from my side but I have a feeling I am almost there!
At step 6. Everything is in the configuration.yaml file, but i do not know what I should put behind 'bearer ’
If I fill in the huge “Access token” I get the following message while Validating the configuration.
Invalid config for [sensor.rest]: expected a dictionary for dictionary value @ data[‘headers’]. Got None extra keys not allowed @ data[‘Authorization’]. Got 'bearer example extra keys not allowed @ data[‘Content-Type’]. Got ‘application/json’. (See ?, line ?).