Page 1 of 1

Help connecting Omnik PV converter to Domoticz

Posted: Tuesday 10 May 2016 23:28
by graafbentinck
Setup:
- Omniksol converter 3k TL2
- Domoticz installed on Synology NAS DS212j (DSM 6), v3.5110
- Also installed: Python, Git server, etc

Ok, so I got a nice Domoticz system here, loads of sensors and everything is working fine. Since 2 months I got my Solar PV system installed. It has a Omnik conveter. The converter is connected by Wifi to my network and sends its information directly to the Omnik Portal.

I found a script from Wouterrr to connect the converter to the Domoticz system. Although based on installing on a Pi, it should work on my setup (on Synology NAS).

https://www.domoticz.com/wiki/Omnik_Solar_Inverter

I followed all the steps;
- added all the virtual sensors in Domoticz
- created the shell script "omnik.sh", adjusted the root: /volume1/@appstore/domoticz/Omnik-Data-Logger/OmnikExport.py
- created dir on synology NAS called "scripts" in domoticz dir: "volume1/@appstore/domoticz/scripts/" folder.
- uploaded shell scripts with WinSCP
- made it executable with putty

- Next was creating dir "Omnik-Data-Logger" on NAS
- Did a clone of all the Git files and copied them to Synology
- Edited config.cfg (added ip + serial nr + host ip domoticz + port domoticz: 8084
- modified omnikexport.py


Output when testing with livestats.py, I got the following response. What am I doing wrong? Where will I be able to see feedback from the inverter?


admin@SynologyDS212j:/volume1/@appstore/domoticz/Omnik-Data-Logger$ python LiveStats.py
Traceback (most recent call last):
File "LiveStats.py", line 7, in <module>
import OmnikExport
File "/volume1/@appstore/domoticz/Omnik-Data-Logger/OmnikExport.py", line 25, in <module>
mysql_enabled = config.getboolean('mysql', 'mysql_enabled')
File "/usr/lib/python2.7/ConfigParser.py", line 368, in getboolean
v = self.get(section, option)
File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'mysql_enabled' in section: 'mysql'


It looks like it has something to do with a sql database?

Re: Help connecting Omnik PV converter to Domoticz

Posted: Monday 23 May 2016 13:18
by thijsdebets
You might need to disable MySQL in Config.cfg:

[mysql]
# Enable for exporting to a mysql database
mysql_enabled = false
# Host where the mysql server is active
mysql_host = 127.0.0.1
mysql_user =
mysql_pass =
mysql_db =

[pvout]

Re: Help connecting Omnik PV converter to Domoticz

Posted: Monday 13 June 2016 10:20
by manjh
Did you ever get this to work?

I also have an Omnik inverter (don't know for sure, but think it is model 4K). Would love to connect it to Domoticz, but am running a Windows installation.
Is there a description available for this setup?

Re: Help connecting Omnik PV converter to Domoticz

Posted: Tuesday 15 November 2016 14:42
by manjh
anyone?

Re: Help connecting Omnik PV converter to Domoticz

Posted: Tuesday 15 November 2016 14:56
by galadril

Re: Help connecting Omnik PV converter to Domoticz

Posted: Tuesday 15 November 2016 21:14
by manjh
Yes, but I am trying to get this running on a Windows based domoticz server... :-(

Re: Help connecting Omnik PV converter to Domoticz

Posted: Wednesday 16 November 2016 9:19
by galadril
Python scripts also run on windows.. right?

Just schedule it to run with Task Scheduler:
https://blogs.esri.com/esri/arcgis/2013 ... g-a-scrip/