jmcollin78 / solar_optimizer

The Solar Optimizer integration for Home Assistant starts and stops your equipments depending on the Solar net production
MIT License
53 stars 10 forks source link

Integration error #7

Closed christiandulle closed 7 months ago

christiandulle commented 7 months ago

I tried to integrate within Home Assistant instance on Raspberry. I only get the error message "Couldnt integrate". where can i find the actuel problem?

kind regards

jmcollin78 commented 7 months ago

In the log ?

Tokn59 commented 7 months ago

Same problem here. Both energy sensors are in Watt as required. The log does not reveal what the exact issue is. Log entry :

Error during setup of component solar_optimizer 07:42:52 – (ERROR) setup.py Your 'devices' configuration is wrong. SolarOptimizer will not be operational until you fix it 07:42:52 – (ERROR) Solar Optimizer (custom integration) 'NoneType' object has no attribute 'get' 07:42:52 – (ERROR) Solar Optimizer (custom integration)

jmcollin78 commented 7 months ago

You have a syntax error in your configuration.yaml. Your 'devices' configuration is wrong.

Can you post here your configuration.yaml hidding secrets et formatting with the <> (code markers)

Tokn59 commented 7 months ago

This is my config file for the devices:

image
Tokn59 commented 7 months ago

`devices:

Tokn59 commented 7 months ago

Additional info .. I got it working now, forgot the algorithm section. However ... I have no clue how to define this for a power plug (with energy metering) as in my case :

`algorithm: initial_temp: 1000 min_temp: 0.1 cooling_factor: 0.95 max_iteration_number: 1000 devices:

jmcollin78 commented 7 months ago

When you post yaml, you should use the <> formatter option. Else it is not possible to see the real indentation problems or else.

For the algorithm options, don't touch it at first try. The default values works for every one.

jmcollin78 commented 7 months ago

Can you please close the ticket if it is now ok ?

Tokn59 commented 7 months ago

Sure but I cannot close it as I am not the original author.

jmcollin78 commented 7 months ago

Hello @christiandulle , is it ok for you ? Can you close the ticket if yes.