Added support for multiple inverters (R1.11.0) - 12 May 2023
See this discussion.
Added configuration item (make sure to add this new configuration item to soliscloud_to_pvoutput.cfg if you have an existing configuration) :
- soliscloud_inverter_index = 0
Added below information about multiple inverters to the README.md.
Domoticz is a very light weight home automation system that lets you monitor and configure miscellaneous devices, including lights, switches, various sensors/meters like temperature, rainfall, wind, ultraviolet (UV) radiation, electricity usage/production, gas consumption, water consumption and many more. Notifications/alerts can be sent to any mobile device.
If you want to know how to configure in Domoticz your inverter, see this discussion.
Make 2 PVOutput accounts (you need 2 email addresses) for each inverter a separate PVOutput account. Make sure to configure the PVOutput accounts and get the PVOutput API keys.
The solution is to have 2 scripts running in different directories (one for each inverter) and for the each directory you do modifications, e.g. the configuration to get the appropriate inverter and send the output to a appropriate PVOutput account as target.
Create two directories, copy the SolisCloud2PVOutput files to each directory and configure in each directory soliscloud_to_pvoutput.cfg:
- solis
- solis2
In solis2 directory you change the following:
- modify soliscloud_to_pvoutput.cfg to point the second PVOutput account secrets and change the soliscloud_inverter_index to 1 (to get the data of the second inverter)
- rename solis.sh to solis2.sh and modify solis2.sh to go to directory solis2 (line 9: cd ~/solis2)
Have two cronrabs running (for solis.sh and solis2.sh)
if you also want the combined data of the two inverters, use a third PVOutput account (yet another email address) and use my python tool CombinePVOutputSystems.
Fixed DOMOTICZ Volt value (R1.10.0) - 08 May 2023
minor domoticz fixes/defaults (R1.9.1) - 07 May 2023
- Check for DOMOTICZ_POWER_GENERATED_ID not zero
- Default domoticz id's are zero (so id is not send)
Added option to send to pvoutput and/or to domoticz. Please make sure to add and configure new configuration lines to soliscloud_to_pvoutput.cfg if you had already installed SolisCloud2PVOuptup before:
- send_to_pvoutput = True
- [Domoticz]
- send_to_domoticz = False
- domot_url = http://192.168.0.222:8081
- domot_power_generated_id = 214
- domot_ac_volt_id = 215
- domot_inverter_temp_id = 0
- domot_volt_id = 0
Last Pull Request there was an error in the logging call on line 109: loggging
Fixed error and also solved warnings.
Externalise the basic logging configuration. ZuinigeRijder#16
Changed from API1.1.1 to API1.2 (R.16.0) - 29 Nov 2022
Changed from API1.1.1 to API1.2 (SolisCloud has fixed typos in method names)
Fix socket.timeout issue #8 (R1.5.0) - 18 Sep 2022
Fix for issue ZuinigeRijder#8
- catch socket.timeout and any other exception
- increase timeout from 10 to 30 (seconds)
- AC voltage is max of 3 phases, so it works for 3 phase systems and 1 phase system
- fixed high resolution watt no longer used (bug slipped in previous release)
- Added inverter temperature for PVOutput Temperature column (instead of outside temperature, you can still overrule with weather device)
- Added AC Voltage for Power Used column (assuming 1 phase system, used "Power Consumption" field, so read "AC Volt" for the "Power Used" column of PVOutput and ignore "Energy Used" column)
Small improvements, increased retries to 30 (minutes) instead of 10 (minutes)
Change your API SECRETS in the configuration file "soliscloud_to_pvoutput.cfg". This way a new python script will not overwrite your API SECRETS.
First release (R1.0.0) - 05 Aug 2022
- added TODAY constant as yyyymmdd to compute it only once
- added inverter temperature and AC volt logging
- made pylint compliant
- make flake8 and black linters compliant
- improved readme
- small fixes
- moved sys.exit earlier
- exit outside 5-23 hours and small script improvements