Python plugin - Solax Inverters
Moderator: leecollings
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Python plugin - Solax Inverters
I created Domoticz plugin to retrieve inverters production data from Solax Cloud as they changed their APIs and no more usableb locally.
First, on the solaxcloud web site, you have to claim a TokenID from the Service menu.
You can add several inverters and get the total like below:
The plugin is available here solax_inverter
First, on the solaxcloud web site, you have to claim a TokenID from the Service menu.
You can add several inverters and get the total like below:
The plugin is available here solax_inverter
-
- Posts: 12
- Joined: Monday 04 January 2016 12:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
Thank you for your work, I installed the plugin and configured it.
It updated once for the first startup, but after that no updates are coming through
In the log I find some entries that could point to the problem in the bottom 2 lines
2021-02-26 14:12:41.394 (Solax thuis) 'Name':'Solax thuis'
2021-02-26 14:12:41.395 (Solax thuis) 'Address':'192.168.2.19'
2021-02-26 14:12:41.395 (Solax thuis) 'Port':'6144'
2021-02-26 14:12:41.395 (Solax thuis) 'Key':'solax_power'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode1':'XXXXXXXXXXXXXXXXXXXXXXX'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode2':'XXXXXXXXXXX'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode3':'30'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode5':'5'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode6':'Debug'
2021-02-26 14:12:41.395 (Solax thuis) 'DomoticzVersion':'2020.2'
2021-02-26 14:12:41.395 (Solax thuis) 'DomoticzHash':'b63341bc0'
2021-02-26 14:12:41.395 (Solax thuis) 'DomoticzBuildTime':'2020-04-26 13:47:55'
2021-02-26 14:12:41.395 (Solax thuis) Device count: 1
2021-02-26 14:12:41.396 (Solax thuis) Device: 1 - ID: 146, Name: 'Solax thuis', nValue: 0, sValue: '2379;8100'
2021-02-26 14:12:41.396 (Solax thuis) Device ID: '146'
2021-02-26 14:12:41.396 (Solax thuis) Device Name: 'Solax thuis'
2021-02-26 14:12:41.396 (Solax thuis) Device nValue: 0
2021-02-26 14:12:41.396 (Solax thuis) Device sValue: '2379;8100'
2021-02-26 14:12:41.396 (Solax thuis) Device LastLevel: 0
2021-02-26 14:12:41.396 (Solax thuis) Pushing 'PollIntervalDirective' on to queue
2021-02-26 14:12:41.396 (Solax thuis) beatcount :10
2021-02-26 14:12:41.396 (Solax thuis) getSunset called
2021-02-26 14:12:41.397 (Solax thuis) currentDate:2021-02-26
2021-02-26 14:12:41.397 (Solax thuis) Pushing 'ProtocolDirective' on to queue
2021-02-26 14:12:41.397 (Solax thuis) Pushing 'ConnectDirective' on to queue
2021-02-26 14:12:41.397 (Solax thuis) Processing 'PollIntervalDirective' message
2021-02-26 14:12:41.397 (Solax thuis) Heartbeat interval set to: 30.
2021-02-26 14:12:41.397 (Solax thuis) Processing 'ProtocolDirective' message
2021-02-26 14:12:41.397 (Solax thuis) Protocol set to: 'HTTP'.
2021-02-26 14:12:41.397 (Solax thuis) Processing 'ConnectDirective' message
2021-02-26 14:12:41.397 (Solax thuis) Transport set to: 'TCP/IP', 192.168.2.19:6144.
2021-02-26 14:12:41.398 (Solax thuis) Connect directive received, action initiated successfully.
2021-02-26 14:12:41.399 (Solax thuis) Pushing 'onConnectCallback' on to queue
2021-02-26 14:12:41.448 (Solax thuis) Processing 'onConnectCallback' message
2021-02-26 14:12:41.448 (Solax thuis) Calling message handler 'onConnect'.
2021-02-26 14:12:41.449 (Solax thuis) Status:0
2021-02-26 14:12:41.449 (Solax thuis) Pushing 'WriteDirective' on to queue
2021-02-26 14:12:41.449 (Solax thuis) Processing 'WriteDirective' message
2021-02-26 14:12:41.449 (Solax thuis) Sending 186 bytes of data
2021-02-26 14:12:41.449 (Solax thuis) 47 45 54 20 2f 6a 73 6f 6e 2e 68 74 6d 3f 74 79 70 65 3d 63 GET./json.htm?type=c
2021-02-26 14:12:41.449 (Solax thuis) 6f 6d 6d 61 6e 64 26 70 61 72 61 6d 3d 67 65 74 53 75 6e 52 ommand¶m=getSunR
2021-02-26 14:12:41.449 (Solax thuis) 69 73 65 53 65 74 20 48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 iseSet.HTTP/1.1..Use
2021-02-26 14:12:41.450 (Solax thuis) 72 2d 41 67 65 6e 74 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e r-Agent:.Domoticz/1.
2021-02-26 14:12:41.450 (Solax thuis) 30 0d 0a 41 63 63 65 70 74 3a 20 61 70 70 6c 69 63 61 74 69 0..Accept:.applicati
2021-02-26 14:12:41.450 (Solax thuis) 6f 6e 2f 6a 73 6f 6e 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 on/json..Content-Typ
2021-02-26 14:12:41.450 (Solax thuis) 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 0d e:.application/json.
2021-02-26 14:12:41.450 (Solax thuis) 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a .Connection:.close..
2021-02-26 14:12:41.450 (Solax thuis) 48 6f 73 74 3a 20 31 39 32 2e 31 36 38 2e 32 2e 31 39 36 31 Host:.192.168.2.1961
2021-02-26 14:12:41.450 (Solax thuis) 34 34 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. 44....
2021-02-26 14:12:41.115 Status: (Solax thuis) Started.
2021-02-26 14:12:41.388 Status: (Solax thuis) Initialized version 1.0.5, author 'syrhus'
2021-02-26 14:12:41.387 Status: (Solax thuis) Entering work loop.
2021-02-26 14:12:44.020 (RFXCom) P1 Smart Meter (Elektra)
2021-02-26 14:12:51.393 (Solax thuis) Pushing 'onHeartbeatCallback' on to queue
2021-02-26 14:12:51.424 (Solax thuis) Processing 'onHeartbeatCallback' message
2021-02-26 14:12:51.424 (Solax thuis) Calling message handler 'onHeartbeat'.
2021-02-26 14:12:51.425 (Solax thuis) onHeartbeat called
2021-02-26 14:12:51.425 (Solax thuis) now: 2021-02-26
2021-02-26 14:12:51.425 (Solax thuis) currentDate:2021-02-26
2021-02-26 14:12:51.425 (Solax thuis) Night time, no data to retrieve
2021-02-26 14:12:51.425 Status: (Solax thuis) Off
Do I need to change something else in order to have this plugin working?
If I look at the system settings, the for my location the I see that SunRise and SunSet are like this, so from a system perspective (and outside) the Sun is up
SunRise: 07:29, SunSet: 18:13
It updated once for the first startup, but after that no updates are coming through
In the log I find some entries that could point to the problem in the bottom 2 lines
2021-02-26 14:12:41.394 (Solax thuis) 'Name':'Solax thuis'
2021-02-26 14:12:41.395 (Solax thuis) 'Address':'192.168.2.19'
2021-02-26 14:12:41.395 (Solax thuis) 'Port':'6144'
2021-02-26 14:12:41.395 (Solax thuis) 'Key':'solax_power'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode1':'XXXXXXXXXXXXXXXXXXXXXXX'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode2':'XXXXXXXXXXX'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode3':'30'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode5':'5'
2021-02-26 14:12:41.395 (Solax thuis) 'Mode6':'Debug'
2021-02-26 14:12:41.395 (Solax thuis) 'DomoticzVersion':'2020.2'
2021-02-26 14:12:41.395 (Solax thuis) 'DomoticzHash':'b63341bc0'
2021-02-26 14:12:41.395 (Solax thuis) 'DomoticzBuildTime':'2020-04-26 13:47:55'
2021-02-26 14:12:41.395 (Solax thuis) Device count: 1
2021-02-26 14:12:41.396 (Solax thuis) Device: 1 - ID: 146, Name: 'Solax thuis', nValue: 0, sValue: '2379;8100'
2021-02-26 14:12:41.396 (Solax thuis) Device ID: '146'
2021-02-26 14:12:41.396 (Solax thuis) Device Name: 'Solax thuis'
2021-02-26 14:12:41.396 (Solax thuis) Device nValue: 0
2021-02-26 14:12:41.396 (Solax thuis) Device sValue: '2379;8100'
2021-02-26 14:12:41.396 (Solax thuis) Device LastLevel: 0
2021-02-26 14:12:41.396 (Solax thuis) Pushing 'PollIntervalDirective' on to queue
2021-02-26 14:12:41.396 (Solax thuis) beatcount :10
2021-02-26 14:12:41.396 (Solax thuis) getSunset called
2021-02-26 14:12:41.397 (Solax thuis) currentDate:2021-02-26
2021-02-26 14:12:41.397 (Solax thuis) Pushing 'ProtocolDirective' on to queue
2021-02-26 14:12:41.397 (Solax thuis) Pushing 'ConnectDirective' on to queue
2021-02-26 14:12:41.397 (Solax thuis) Processing 'PollIntervalDirective' message
2021-02-26 14:12:41.397 (Solax thuis) Heartbeat interval set to: 30.
2021-02-26 14:12:41.397 (Solax thuis) Processing 'ProtocolDirective' message
2021-02-26 14:12:41.397 (Solax thuis) Protocol set to: 'HTTP'.
2021-02-26 14:12:41.397 (Solax thuis) Processing 'ConnectDirective' message
2021-02-26 14:12:41.397 (Solax thuis) Transport set to: 'TCP/IP', 192.168.2.19:6144.
2021-02-26 14:12:41.398 (Solax thuis) Connect directive received, action initiated successfully.
2021-02-26 14:12:41.399 (Solax thuis) Pushing 'onConnectCallback' on to queue
2021-02-26 14:12:41.448 (Solax thuis) Processing 'onConnectCallback' message
2021-02-26 14:12:41.448 (Solax thuis) Calling message handler 'onConnect'.
2021-02-26 14:12:41.449 (Solax thuis) Status:0
2021-02-26 14:12:41.449 (Solax thuis) Pushing 'WriteDirective' on to queue
2021-02-26 14:12:41.449 (Solax thuis) Processing 'WriteDirective' message
2021-02-26 14:12:41.449 (Solax thuis) Sending 186 bytes of data
2021-02-26 14:12:41.449 (Solax thuis) 47 45 54 20 2f 6a 73 6f 6e 2e 68 74 6d 3f 74 79 70 65 3d 63 GET./json.htm?type=c
2021-02-26 14:12:41.449 (Solax thuis) 6f 6d 6d 61 6e 64 26 70 61 72 61 6d 3d 67 65 74 53 75 6e 52 ommand¶m=getSunR
2021-02-26 14:12:41.449 (Solax thuis) 69 73 65 53 65 74 20 48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 iseSet.HTTP/1.1..Use
2021-02-26 14:12:41.450 (Solax thuis) 72 2d 41 67 65 6e 74 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e r-Agent:.Domoticz/1.
2021-02-26 14:12:41.450 (Solax thuis) 30 0d 0a 41 63 63 65 70 74 3a 20 61 70 70 6c 69 63 61 74 69 0..Accept:.applicati
2021-02-26 14:12:41.450 (Solax thuis) 6f 6e 2f 6a 73 6f 6e 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 on/json..Content-Typ
2021-02-26 14:12:41.450 (Solax thuis) 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 0d e:.application/json.
2021-02-26 14:12:41.450 (Solax thuis) 0a 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a .Connection:.close..
2021-02-26 14:12:41.450 (Solax thuis) 48 6f 73 74 3a 20 31 39 32 2e 31 36 38 2e 32 2e 31 39 36 31 Host:.192.168.2.1961
2021-02-26 14:12:41.450 (Solax thuis) 34 34 0d 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. 44....
2021-02-26 14:12:41.115 Status: (Solax thuis) Started.
2021-02-26 14:12:41.388 Status: (Solax thuis) Initialized version 1.0.5, author 'syrhus'
2021-02-26 14:12:41.387 Status: (Solax thuis) Entering work loop.
2021-02-26 14:12:44.020 (RFXCom) P1 Smart Meter (Elektra)
2021-02-26 14:12:51.393 (Solax thuis) Pushing 'onHeartbeatCallback' on to queue
2021-02-26 14:12:51.424 (Solax thuis) Processing 'onHeartbeatCallback' message
2021-02-26 14:12:51.424 (Solax thuis) Calling message handler 'onHeartbeat'.
2021-02-26 14:12:51.425 (Solax thuis) onHeartbeat called
2021-02-26 14:12:51.425 (Solax thuis) now: 2021-02-26
2021-02-26 14:12:51.425 (Solax thuis) currentDate:2021-02-26
2021-02-26 14:12:51.425 (Solax thuis) Night time, no data to retrieve
2021-02-26 14:12:51.425 Status: (Solax thuis) Off
Do I need to change something else in order to have this plugin working?
If I look at the system settings, the for my location the I see that SunRise and SunSet are like this, so from a system perspective (and outside) the Sun is up
SunRise: 07:29, SunSet: 18:13
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
Hello itsbvka,
Are you sure to allow local connection to Domoticz in the Domoticz parameters? (192.168.2.*; ...)
The sunset and sunrise time are queried but nothing in the log so it seems to failed.
Regards
Are you sure to allow local connection to Domoticz in the Domoticz parameters? (192.168.2.*; ...)
The sunset and sunrise time are queried but nothing in the log so it seems to failed.
Regards
- waltervl
- Posts: 5148
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python plugin - Solax Inverters
For clarity: Local network settings in menu Setup - Settings
https://www.domoticz.com/wiki/Applicati ... stem_Setup
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 12
- Joined: Monday 04 January 2016 12:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
I found a small error in the script.
the initial value of self.sunset was not set, it was only self.sunrise that gets an initial value.
This is what is in the original script
self.sunrise = datetime.time(7,30,0)
self.sunrise = datetime.time(21,30,0)
I changed this to
self.sunrise = datetime.time(7,30,0)
self.sunset = datetime.time(21,30,0)
and now the script starts to generate meaningful info and the graphs get populated
the initial value of self.sunset was not set, it was only self.sunrise that gets an initial value.
This is what is in the original script
self.sunrise = datetime.time(7,30,0)
self.sunrise = datetime.time(21,30,0)
I changed this to
self.sunrise = datetime.time(7,30,0)
self.sunset = datetime.time(21,30,0)
and now the script starts to generate meaningful info and the graphs get populated
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
Thanks for the bug about the sunset default value.
BUT, you still have an issue because the plugin asks to Domoticz the sunrise and sunset time to override default value. In your case, this request doesn't work. Please, check your Domoticz IP address, port and if you have allow local network connection in Domoticz.
On your web browser, in a new tab, enter:
http://192.168.2.19:6144/json.htm?type= ... SunRiseSet
Do you have a json result with sunset and sunrise value?
BUT, you still have an issue because the plugin asks to Domoticz the sunrise and sunset time to override default value. In your case, this request doesn't work. Please, check your Domoticz IP address, port and if you have allow local network connection in Domoticz.
On your web browser, in a new tab, enter:
http://192.168.2.19:6144/json.htm?type= ... SunRiseSet
Do you have a json result with sunset and sunrise value?
-
- Posts: 12
- Joined: Monday 04 January 2016 12:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
You are right, this call does not give a proper response
However Local is set to 192.168.*.*;127.0.0.* which should allow local connections so that's not the problem
When connecting to https://192.168.2.19/json.htm?type=comm ... SunRiseSet I do get the right answer, so the problem is the port used
{
"AstrTwilightEnd" : "20:04",
"AstrTwilightStart" : "05:38",
"CivTwilightEnd" : "18:47",
"CivTwilightStart" : "06:56",
"DayLength" : "10:44",
"NautTwilightEnd" : "19:25",
"NautTwilightStart" : "06:17",
"ServerTime" : "2021-02-26 19:47:54",
"SunAtSouth" : "12:51",
"Sunrise" : "07:29",
"Sunset" : "18:13",
"status" : "OK",
"title" : "getSunRiseSet"
}
However Local is set to 192.168.*.*;127.0.0.* which should allow local connections so that's not the problem
When connecting to https://192.168.2.19/json.htm?type=comm ... SunRiseSet I do get the right answer, so the problem is the port used
{
"AstrTwilightEnd" : "20:04",
"AstrTwilightStart" : "05:38",
"CivTwilightEnd" : "18:47",
"CivTwilightStart" : "06:56",
"DayLength" : "10:44",
"NautTwilightEnd" : "19:25",
"NautTwilightStart" : "06:17",
"ServerTime" : "2021-02-26 19:47:54",
"SunAtSouth" : "12:51",
"Sunrise" : "07:29",
"Sunset" : "18:13",
"status" : "OK",
"title" : "getSunRiseSet"
}
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
Good news!
Try to change the port to 80 instead of 6144.
Regards
Try to change the port to 80 instead of 6144.
Regards
-
- Posts: 12
- Joined: Monday 04 January 2016 12:42
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
Indeed, that part was obvious. I should have stated in my previous post that I already did that.
Thanks for creating the plugin and the help here!
Thanks for creating the plugin and the help here!
-
- Posts: 14
- Joined: Monday 15 March 2021 16:47
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
hi,
first thank you for making this plugin.
i ran into some trouble.
I filled in all the information. but its wont show up under devices.
I see the below in the log.
Hope you can point me in the right direction what i'm doing wrong
Kind regards
2021-03-15 15:43:06.482 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:43:20.484 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:43:34.486 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:43:48.488 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:44:02.490 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:44:06.627 Error: (Solax) 'onStart' failed 'ConnectionError'.
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 247 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 87 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 116 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 57 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 75 in '/usr/lib/python3/dist-packages/requests/api.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 60 in '/usr/lib/python3/dist-packages/requests/api.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 533 in '/usr/lib/python3/dist-packages/requests/sessions.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 646 in '/usr/lib/python3/dist-packages/requests/sessions.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 516 in '/usr/lib/python3/dist-packages/requests/adapters.py'
first thank you for making this plugin.
i ran into some trouble.
I filled in all the information. but its wont show up under devices.
I see the below in the log.
Hope you can point me in the right direction what i'm doing wrong
Kind regards
2021-03-15 15:43:06.482 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:43:20.484 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:43:34.486 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:43:48.488 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:44:02.490 Error: Solax hardware (3) thread seems to have ended unexpectedly
2021-03-15 15:44:06.627 Error: (Solax) 'onStart' failed 'ConnectionError'.
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 247 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 87 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 116 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 57 in '/config/plugins/solax/plugin.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 75 in '/usr/lib/python3/dist-packages/requests/api.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 60 in '/usr/lib/python3/dist-packages/requests/api.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 533 in '/usr/lib/python3/dist-packages/requests/sessions.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 646 in '/usr/lib/python3/dist-packages/requests/sessions.py'
2021-03-15 15:44:06.627 Error: (Solax) ----> Line 516 in '/usr/lib/python3/dist-packages/requests/adapters.py'
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
Hi
What Domoticz IP address & port have you entered in the parameters?
Regards
What Domoticz IP address & port have you entered in the parameters?
Regards
-
- Posts: 14
- Joined: Monday 15 March 2021 16:47
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
I filled in my local ip adress 192.168.2.12
It’s running on port 8020
It’s running on port 8020
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
Have you tried to open your web navigator and enter:
http://192.168.2.12:8020/json.htm?type= ... SunRiseSet
Is it succeeded?
Else, could you please switch the plugin in debug mode to get more information.
http://192.168.2.12:8020/json.htm?type= ... SunRiseSet
Is it succeeded?
Else, could you please switch the plugin in debug mode to get more information.
-
- Posts: 14
- Joined: Monday 15 March 2021 16:47
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
{
"AstrTwilightEnd" : "19:34",
"AstrTwilightStart" : "03:54",
"CivTwilightEnd" : "18:15",
"CivTwilightStart" : "05:14",
"DayLength" : "11:55",
"NautTwilightEnd" : "18:54",
"NautTwilightStart" : "04:35",
"ServerTime" : "2021-03-16 07:01:57",
"SunAtSouth" : "11:44",
"Sunrise" : "05:47",
"Sunset" : "17:42",
"status" : "OK",
"title" : "getSunRiseSet"
}
think this looks good.
Can i change it to debug mode in the pyton script ?
sorry for the questions, first time i', working with domotics
"AstrTwilightEnd" : "19:34",
"AstrTwilightStart" : "03:54",
"CivTwilightEnd" : "18:15",
"CivTwilightStart" : "05:14",
"DayLength" : "11:55",
"NautTwilightEnd" : "18:54",
"NautTwilightStart" : "04:35",
"ServerTime" : "2021-03-16 07:01:57",
"SunAtSouth" : "11:44",
"Sunrise" : "05:47",
"Sunset" : "17:42",
"status" : "OK",
"title" : "getSunRiseSet"
}
think this looks good.
Can i change it to debug mode in the pyton script ?
sorry for the questions, first time i', working with domotics
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
In the plugin parameters, the last one is for Debug; the default is "False", change it to "True" and update the plugin.
Regards
Regards
-
- Posts: 14
- Joined: Monday 15 March 2021 16:47
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
2021-03-16 10:43:07.051 (Solax) Pushing 'onStopCallback' on to queue
2021-03-16 10:43:07.089 (Solax) Processing 'onStopCallback' message
2021-03-16 10:43:07.089 (Solax) Calling message handler 'onStop'.
2021-03-16 10:43:07.089 (Solax) Plugin is stopping.
2021-03-16 10:43:07.051 Status: (Solax) Stop directive received.
2021-03-16 10:43:07.051 Status: (Solax) Exiting work loop.
2021-03-16 10:43:07.251 Status: (Solax) Stopping threads.
2021-03-16 10:43:07.252 Status: (Solax) Stopped.
2021-03-16 10:43:07.252 Status: (Solax) Started.
2021-03-16 10:43:10.016 (Solax) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-03-16 10:43:10.016 (Solax) 'HardwareID':'3'
2021-03-16 10:43:10.016 (Solax) 'HomeFolder':'/config/plugins/solax/'
2021-03-16 10:43:10.016 (Solax) 'StartupFolder':'/usr/share/domoticz/'
2021-03-16 10:43:10.016 (Solax) 'UserDataFolder':'/config/'
2021-03-16 10:43:10.016 (Solax) 'Database':'/config/domoticz.db'
2021-03-16 10:43:10.016 (Solax) 'Language':'en'
2021-03-16 10:43:10.016 (Solax) 'Version':'1.1.0'
2021-03-16 10:43:10.016 (Solax) 'Author':'syrhus'
2021-03-16 10:43:10.016 (Solax) 'Name':'Solax'
2021-03-16 10:43:10.016 (Solax) 'Address':'192.168.2.12'
2021-03-16 10:43:10.016 (Solax) 'Port':'8020'
2021-03-16 10:43:10.016 (Solax) 'Key':'solax_power'
2021-03-16 10:43:10.016 (Solax) 'Mode1':'*************'
2021-03-16 10:43:10.016 (Solax) 'Mode2':'*************'
2021-03-16 10:43:10.016 (Solax) 'Mode3':'30'
2021-03-16 10:43:10.016 (Solax) 'Mode5':'5'
2021-03-16 10:43:10.016 (Solax) 'Mode6':'Debug'
2021-03-16 10:43:10.016 (Solax) 'DomoticzVersion':'2020.2'
2021-03-16 10:43:10.016 (Solax) 'DomoticzHash':'b63341bc0'
2021-03-16 10:43:10.016 (Solax) 'DomoticzBuildTime':'2020-04-26 13:47:55'
2021-03-16 10:43:10.016 (Solax) Device count: 0
2021-03-16 10:43:10.016 (Solax) Pushing 'PollIntervalDirective' on to queue
2021-03-16 10:43:10.016 (Solax) beatcount :10
2021-03-16 10:43:10.016 (Solax) getSunset called
2021-03-16 10:43:10.016 (Solax) currentDate:2021-03-16
2021-03-16 10:43:10.016 (Solax) url:http://192.168.2.12:8020/json.htm?type= ... SunRiseSet
2021-03-16 10:43:10.015 Status: (Solax) Entering work loop.
2021-03-16 10:43:10.015 Status: (Solax) Initialized version 1.1.0, author 'syrhus'
I removed the value from mode1 and mode 2
2021-03-16 10:43:07.089 (Solax) Processing 'onStopCallback' message
2021-03-16 10:43:07.089 (Solax) Calling message handler 'onStop'.
2021-03-16 10:43:07.089 (Solax) Plugin is stopping.
2021-03-16 10:43:07.051 Status: (Solax) Stop directive received.
2021-03-16 10:43:07.051 Status: (Solax) Exiting work loop.
2021-03-16 10:43:07.251 Status: (Solax) Stopping threads.
2021-03-16 10:43:07.252 Status: (Solax) Stopped.
2021-03-16 10:43:07.252 Status: (Solax) Started.
2021-03-16 10:43:10.016 (Solax) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-03-16 10:43:10.016 (Solax) 'HardwareID':'3'
2021-03-16 10:43:10.016 (Solax) 'HomeFolder':'/config/plugins/solax/'
2021-03-16 10:43:10.016 (Solax) 'StartupFolder':'/usr/share/domoticz/'
2021-03-16 10:43:10.016 (Solax) 'UserDataFolder':'/config/'
2021-03-16 10:43:10.016 (Solax) 'Database':'/config/domoticz.db'
2021-03-16 10:43:10.016 (Solax) 'Language':'en'
2021-03-16 10:43:10.016 (Solax) 'Version':'1.1.0'
2021-03-16 10:43:10.016 (Solax) 'Author':'syrhus'
2021-03-16 10:43:10.016 (Solax) 'Name':'Solax'
2021-03-16 10:43:10.016 (Solax) 'Address':'192.168.2.12'
2021-03-16 10:43:10.016 (Solax) 'Port':'8020'
2021-03-16 10:43:10.016 (Solax) 'Key':'solax_power'
2021-03-16 10:43:10.016 (Solax) 'Mode1':'*************'
2021-03-16 10:43:10.016 (Solax) 'Mode2':'*************'
2021-03-16 10:43:10.016 (Solax) 'Mode3':'30'
2021-03-16 10:43:10.016 (Solax) 'Mode5':'5'
2021-03-16 10:43:10.016 (Solax) 'Mode6':'Debug'
2021-03-16 10:43:10.016 (Solax) 'DomoticzVersion':'2020.2'
2021-03-16 10:43:10.016 (Solax) 'DomoticzHash':'b63341bc0'
2021-03-16 10:43:10.016 (Solax) 'DomoticzBuildTime':'2020-04-26 13:47:55'
2021-03-16 10:43:10.016 (Solax) Device count: 0
2021-03-16 10:43:10.016 (Solax) Pushing 'PollIntervalDirective' on to queue
2021-03-16 10:43:10.016 (Solax) beatcount :10
2021-03-16 10:43:10.016 (Solax) getSunset called
2021-03-16 10:43:10.016 (Solax) currentDate:2021-03-16
2021-03-16 10:43:10.016 (Solax) url:http://192.168.2.12:8020/json.htm?type= ... SunRiseSet
2021-03-16 10:43:10.015 Status: (Solax) Entering work loop.
2021-03-16 10:43:10.015 Status: (Solax) Initialized version 1.1.0, author 'syrhus'
I removed the value from mode1 and mode 2
-
- Posts: 14
- Joined: Monday 15 March 2021 16:47
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
after the startup i keep seeing below logs
2021-03-16 10:48:56.812 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:48:56.816 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:48:56.816 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:48:56.816 (Solax) onHeartbeat called
2021-03-16 10:48:56.816 (Solax) now: 2021-03-16
2021-03-16 10:48:56.816 (Solax) currentDate:2021-03-16
2021-03-16 10:48:56.816 (Solax) hearbeat:8
2021-03-16 10:49:26.816 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:49:26.860 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:49:26.860 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:49:26.860 (Solax) onHeartbeat called
2021-03-16 10:49:26.861 (Solax) now: 2021-03-16
2021-03-16 10:49:26.861 (Solax) currentDate:2021-03-16
2021-03-16 10:49:26.861 (Solax) hearbeat:9
2021-03-16 10:49:56.821 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:49:56.849 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:49:56.849 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:49:56.849 (Solax) onHeartbeat called
2021-03-16 10:49:56.849 (Solax) now: 2021-03-16
2021-03-16 10:49:56.849 (Solax) currentDate:2021-03-16
2021-03-16 10:49:56.849 (Solax) hearbeat:10
2021-03-16 10:55:26.865 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:55:26.875 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:55:26.875 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:55:26.875 (Solax) onHeartbeat called
2021-03-16 10:55:26.875 (Solax) now: 2021-03-16
2021-03-16 10:55:26.875 (Solax) currentDate:2021-03-16
2021-03-16 10:55:26.875 (Solax) hearbeat:10
2021-03-16 10:55:56.869 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:55:56.913 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:55:56.913 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:55:56.913 (Solax) onHeartbeat called
2021-03-16 10:55:56.913 (Solax) now: 2021-03-16
2021-03-16 10:55:56.913 (Solax) currentDate:2021-03-16
2021-03-16 10:55:56.913 (Solax) url:https://www.eu.solaxcloud.com:9443/prox ... ******&sn=********
2021-03-16 10:55:57.251 (Solax) result:{'exception': 'Query success!', 'result': {'inverterSN': '*********', 'sn': '********', 'acpower': 483.0, 'yieldtoday': 1.4, 'yieldtotal': 507.1, 'feedinpower': 0.0, 'feedinenergy': 0.0, 'consumeenergy': 0.0, 'feedinpowerM2': 0.0, 'soc': 0.0, 'peps1': 0.0, 'peps2': 0.0, 'peps3': 0.0, 'inverterType': '4', 'inverterStatus': '102', 'uploadTime': '2021-03-16 10:53:52', 'batPower': 0.0, 'powerdc1': 493.0, 'powerdc2': 0.0}, 'success': True}
2021-03-16 10:55:57.251 (Solax) uploadTime:2021-03-16 10:53:52
2021-03-16 10:55:57.251 (Solax) DiffTime:125.251304
2021-03-16 10:55:57.251 (Solax) updateDevices called
2021-03-16 10:55:57.251 (Solax) nbInverters : 1
2021-03-16 10:48:56.812 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:48:56.816 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:48:56.816 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:48:56.816 (Solax) onHeartbeat called
2021-03-16 10:48:56.816 (Solax) now: 2021-03-16
2021-03-16 10:48:56.816 (Solax) currentDate:2021-03-16
2021-03-16 10:48:56.816 (Solax) hearbeat:8
2021-03-16 10:49:26.816 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:49:26.860 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:49:26.860 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:49:26.860 (Solax) onHeartbeat called
2021-03-16 10:49:26.861 (Solax) now: 2021-03-16
2021-03-16 10:49:26.861 (Solax) currentDate:2021-03-16
2021-03-16 10:49:26.861 (Solax) hearbeat:9
2021-03-16 10:49:56.821 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:49:56.849 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:49:56.849 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:49:56.849 (Solax) onHeartbeat called
2021-03-16 10:49:56.849 (Solax) now: 2021-03-16
2021-03-16 10:49:56.849 (Solax) currentDate:2021-03-16
2021-03-16 10:49:56.849 (Solax) hearbeat:10
2021-03-16 10:55:26.865 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:55:26.875 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:55:26.875 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:55:26.875 (Solax) onHeartbeat called
2021-03-16 10:55:26.875 (Solax) now: 2021-03-16
2021-03-16 10:55:26.875 (Solax) currentDate:2021-03-16
2021-03-16 10:55:26.875 (Solax) hearbeat:10
2021-03-16 10:55:56.869 (Solax) Pushing 'onHeartbeatCallback' on to queue
2021-03-16 10:55:56.913 (Solax) Processing 'onHeartbeatCallback' message
2021-03-16 10:55:56.913 (Solax) Calling message handler 'onHeartbeat'.
2021-03-16 10:55:56.913 (Solax) onHeartbeat called
2021-03-16 10:55:56.913 (Solax) now: 2021-03-16
2021-03-16 10:55:56.913 (Solax) currentDate:2021-03-16
2021-03-16 10:55:56.913 (Solax) url:https://www.eu.solaxcloud.com:9443/prox ... ******&sn=********
2021-03-16 10:55:57.251 (Solax) result:{'exception': 'Query success!', 'result': {'inverterSN': '*********', 'sn': '********', 'acpower': 483.0, 'yieldtoday': 1.4, 'yieldtotal': 507.1, 'feedinpower': 0.0, 'feedinenergy': 0.0, 'consumeenergy': 0.0, 'feedinpowerM2': 0.0, 'soc': 0.0, 'peps1': 0.0, 'peps2': 0.0, 'peps3': 0.0, 'inverterType': '4', 'inverterStatus': '102', 'uploadTime': '2021-03-16 10:53:52', 'batPower': 0.0, 'powerdc1': 493.0, 'powerdc2': 0.0}, 'success': True}
2021-03-16 10:55:57.251 (Solax) uploadTime:2021-03-16 10:53:52
2021-03-16 10:55:57.251 (Solax) DiffTime:125.251304
2021-03-16 10:55:57.251 (Solax) updateDevices called
2021-03-16 10:55:57.251 (Solax) nbInverters : 1
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
When you have added/updated the plugin, did you previously allow to add new hardware in the Domoticz settings? Do you have a Solax device?
-
- Posts: 14
- Joined: Monday 15 March 2021 16:47
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python plugin - Solax Inverters
I only have them in the hardware tab.
Its not showing up in the device list
Its not showing up in the device list
-
- Posts: 79
- Joined: Tuesday 12 December 2017 14:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Paris
- Contact:
Re: Python plugin - Solax Inverters
So, please, go to Domoticz settings and check "Accept new hardware devices".
Then, go to hardware tab, select the solax plugin and click on update.
Check the log and device list.
Then, go to hardware tab, select the solax plugin and click on update.
Check the log and device list.
Who is online
Users browsing this forum: No registered users and 1 guest