aspeakman / SolisControl

Control Solis inverters using the Solis Cloud API - includes a Home Assistant pyscript app for the Octopus Flux tariff
MIT License
1 stars 1 forks source link

How to install #1

Open itinquark000 opened 5 days ago

itinquark000 commented 5 days ago

Hi there,

Congrats for the job! I am leaving out of UK so Octopus file is not for me but the inverter control yes.

I have Solis RHI-3P8K-HVES-5G hybrid inverter and S3 Wifi dartalogger, from which i want to read charge/discharge data and later control charge and discharge by HA.

I am not sure where i should install the SolisControl-main folder i download as zip. Should be inside custom_components folder? or maybe under custom_components\Solis folder?

I cannot understand if this is supposed to be a new device integration or additional function of existing Solis integration.

Sorry in advance, since i am learning but despite reading a lot i have still doubts :)

Regards,

aspeakman commented 4 days ago

'soliscontrol' is a standard Python package (independent of Home Assistant) - so I would read about installing and running it on your local computer first. The README tells you where to start by configuring 'secrets.yaml' and running 'python solis_control_req_mod.py'.

For use within Home Assistant there is a separate app 'solis_flux_times.py'. This uses 'soliscontrol' python modules internally and is dependent on the HA Pyscript integration. If your provider has a cheap rate charging period and a peak rate discharge period you can use it as is, but otherwise you will need to adapt it.

itinquark000 commented 3 days ago

Thanks @aspeakman ! i am trying to run solis_control_req_mod.py but i am facing this error: image Any idea how to fix it?

aspeakman commented 1 day ago

Possibly your secrets.yaml or main.yaml are wrongly specified. Try https://www.yamllint.com/

itinquark000 commented 14 hours ago

@aspeakman I checked secret.yaml, main.yaml and also config.yaml with https://www.yamllint.com/ and all are correct. But still the same error when launching 'solis_control_req_mod.py'.

Here attached the code 'solis_control_req_mod.py' (pasted into docx file to attach here). solis_control_req_mod.py.docx

All files are into soliscontrol folder, see below: image

At the moment i am focusing on running correctly 'solis_control_req_mod.py', later i will deal with 'solis_flux_times.py'.