Domoticz downgrade from 2023.1 to 2022.2

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

Hello,

I run a script to read information from my Omnik Solar inverter. After updating to 2023.1 this function has stoped working.
I saw some other users having the same problem, and a solution is not available yet.

Is there a way tot install Domoticz 2022.2 for Pi Zero W (arm61?), because this version worked ok.
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by waltervl »

What kind of omnik script are you talking about? There should be no reason in updating from 2022.2 to 2023.1 to have a script stop.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

Maybe there is no reason for the script to not perform, but the fact is, it does nothing. This is from the moment I run the 2023.1 update.
I run 3 raspberry/domoticz in total and the one with the Omnik script is "dead" (not the pi/domoticz, but Omnik script, but used on 1 pi only)

When you dive into it , there are more users who have the same problem, something todo with "http get" or something simular.
Schermafbeelding 2023-02-19 om 15.56.04.pdf
(383.19 KiB) Downloaded 163 times
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by waltervl »

If you are talking about the python plugin then you are correct, but it should have failed before as the change was already in 2022.2.

I also have an omnik and I use this dzvents script now: https://github.com/waltervl/Domoticz-dzVents-Omnik

this script only supports local Omnik inverter with line beginning with myDeviceArray[0] in contents from link http://IP-Inverter/js/status.js
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

I run below script in /domoticz/scripts

#!/bin/bash
sudo python /home/pi/Omnik-Data-Logger/OmnikExport.py

I use the script from https://www.domoticz.com/wiki/Omnik_Solar_Inverter

You can say that the change was in 2022.2, but I updated to this version a couple of weeks after this version came available (2022.2), and Omnik script worked also in this version, until 19 februari 2023, when I updated to 2023.1 and then the Omnik reading stopped

So I would like to get it working again so I can keep the history of 4 years reading from the solar system.
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by waltervl »

Ah OK, It always helps to link to the origin of your integration, this is not a Python plugin or Python Event script.
This is an external Python script that pushes data to Domoticz through the http API system.

So probably you run into the security changes that were introduced in 2023.1, see wiki https://www.domoticz.com/wiki/Security

Check the setting "Allow Basic Authentication over plain HTTP" It should be switched on when using http and not https.
Also check the IP range in Trusted networks.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

Thanks for the update.
I changed the http setting, restarted Domoticz service, but no change
10Knipsel.JPG
10Knipsel.JPG (49.01 KiB) Viewed 3262 times
11Knipsel.JPG
11Knipsel.JPG (99.92 KiB) Viewed 3262 times
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

When i run the seperate python scripts,i get errors like below.
I did not change anything from the Omnik (Inverter-Data-Logger) script, it just stopped after the 2023.1 update.


pi@Domoticz:~/Inverter-Data-Logger $ python InverterServer.py
Traceback (most recent call last):
File "InverterServer.py", line 199, in <module>
inverter_exporter.run()
File "InverterServer.py", line 52, in run
self.build_logger(self.config)
File "InverterServer.py", line 190, in build_logger
logging.config.dictConfig(log_dict)
File "/usr/lib/python2.7/logging/config.py", line 794, in dictConfig
dictConfigClass(config).configure()
File "/usr/lib/python2.7/logging/config.py", line 576, in configure
'%r: %s' % (name, e))
ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/home/pi/Inverter-Data-Logger/inverter-export.log'
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by waltervl »

I think I notice a space in your Trusted network settings: IP1; IP2
It should be IP1;IP2
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

I removed the space between IP1;IP2,did a restart of domoticz, but problem is the same

I pinged from this raspberry to remote 192.168.178.xxx IP and got positive respons
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by waltervl »

I did not read the error log completely at first but it seems there is a access error on the log file which is giving this issue. Check the permissions on this file so that the user that runs the script has access.

ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/home/pi/Inverter-Data-Logger/inverter-export.log'
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

I started running the installation steps 1 by running them like in the setup manual.

The Lines with " DEBUG current out of range" is by design because it is an 1 fase and not 3 fase inverter

Below is the output when I manually run python Inverter-Data-Logger.py
There is a respons from the Inverter, all the data is there , but at the end there is a http error and I don't know how to resolve that....




2023-02-23 17:59:36,071 DEBUG Importing output plugin DomoticzOutput
2023-02-23 17:59:36,237 INFO Connecting to logger with IP: 192.168.178.210 and SN 632378446
2023-02-23 17:59:36,240 INFO connecting to 192.168.178.210 port 8899
2023-02-23 17:59:36,252 DEBUG RAW sent Packet (len=16): 68:02:41:b1:4e:54:b1:25:4e:54:b1:25:01:00:e5:16 hANT%NT%
2023-02-23 17:59:36,857 DEBUG RAW received Packet (len=183): 68:a9:41:b0:4e:54:b1:25:4e:54:b1:25:81:02:01:4e:4c:42:4e:33:30:32:30:31:38:31:43:35:30:35:39:00:7a:08:0e:08:04:00:00:00:00:00:00:00:00:00:00:00:00:00:00:08:da:00:00:00:00:13:88:00:00:00:00:00:00:00:00:00:00:01:00:00:00:fd:bb:00:00:53:6d:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:3f:16 hANT%NT%NLBN3020181C5059zSm?
2023-02-23 17:59:36,868 DEBUG DATA len=169:
2023-02-23 17:59:36,872 INFO Inverter ID: NLBN3020181C5059
2023-02-23 17:59:36,878 INFO Inverter main firmware version:
2023-02-23 17:59:36,881 INFO Inverter slave firmware version:
2023-02-23 17:59:36,896 INFO RUN State: 0
2023-02-23 17:59:36,900 DEBUG Run pluginDomoticzOutput
2023-02-23 17:59:36,905 INFO Uploading data from inverter with ID: NLBN3020181C5059 to Domoticz
2023-02-23 17:59:36,909 DEBUG url: http://127.0.0.1:8080/json.htm
2023-02-23 17:59:36,912 DEBUG Temperature : 12.2 degrees celcius
2023-02-23 17:59:36,916 DEBUG PV1 voltage : 206.2 Volt
2023-02-23 17:59:36,922 DEBUG AC1 voltage : 226.6 Volt
2023-02-23 17:59:36,932 DEBUG AC total power: 0 Watt
2023-02-23 17:59:36,934 DEBUG e_today : 2.56 kWh
2023-02-23 17:59:36,938 DEBUG msg.e_total : 6495.5 kWh
2023-02-23 17:59:36,943 DEBUG e_total : 6495.56 kWh
2023-02-23 17:59:36,948 DEBUG H_total not defined: 21357 hours
2023-02-23 17:59:36,954 DEBUG PV3 current out of range, or not defined: 0.0 Ampere
2023-02-23 17:59:36,956 DEBUG PV1/2/3 current not defined: 0.0/0.0/0.0 Ampere
2023-02-23 17:59:36,962 DEBUG PV3 voltage out of range, or not defined: 0.0 Volts
2023-02-23 17:59:36,967 DEBUG PV1/2/3 voltage not defined: 206.2/205.2/0.0 Volts
2023-02-23 17:59:36,977 DEBUG AC2 current out of range, or not defined: 0.0 Ampere
2023-02-23 17:59:36,986 DEBUG AC3 current out of range, or not defined: 0.0 Ampere
2023-02-23 17:59:36,989 DEBUG AC1/2/3 current not defined: 0.0/0.0/0.0 Ampere
2023-02-23 17:59:36,995 DEBUG AC2 voltage out of range, or not defined: 0.0 Volt
2023-02-23 17:59:37,004 DEBUG AC3 voltage out of range, or not defined: 0.0 Volt
2023-02-23 17:59:37,013 DEBUG AC1/2/3 voltage not defined: 226.6/0.0/0.0 Volts
2023-02-23 17:59:37,024 DEBUG AC2 power out of range, or not defined: 0 Watt
2023-02-23 17:59:37,027 DEBUG AC3 power out of range, or not defined: 0 Watt
2023-02-23 17:59:37,031 DEBUG AC123 power not defined: 0 Watt
2023-02-23 17:59:37,035 DEBUG AC2 frequency out of range, or not defined: 0.0 Hertz
2023-02-23 17:59:37,043 DEBUG AC3 frequency out of range, or not defined: 0.0 Hertz
2023-02-23 17:59:37,048 DEBUG http://127.0.0.1:8080/json.htm?type=com ... e&nvalue=0
2023-02-23 17:59:37,110 ERROR HTTP error : 401 Reason: Unauthorized
2023-02-23 17:59:37,122 DEBUG RAW received Packet (len=99): 68:11:41:f0:4e:54:b1:25:4e:54:b1:25:44:41:54:41:20:53:45:4e:44:20:49:53:20:4f:4b:0d:0a:23:16:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff:ff hANT%NT%DATA SEND IS OK#
2023-02-23 17:59:37,136 DEBUG DATA len=17:
2023-02-23 17:59:37,144 DEBUG Exit Status: DATA SEND IS OK
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

waltervl wrote: Wednesday 22 February 2023 18:11 I did not read the error log completely at first but it seems there is a access error on the log file which is giving this issue. Check the permissions on this file so that the user that runs the script has access.

ValueError: Unable to configure handler 'file': [Errno 13] Permission denied: '/home/pi/Inverter-Data-Logger/inverter-export.log'
The error was corrected by giving the pi user R/W access to this specific file
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by waltervl »

It is strange that only an update of Domoticz has caused this error.
But glad it works now.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

The problem is still there. The error you pointend was for file access: inverter-export.log (that is fixed), but I still don't have the Omik PV reading running.

This is the Omnik script I use:
https://github.com/XtheOne/Inverter-Dat ... /README.md

When I run the 2 python scripts I get 1 good and 1 bad reply.

python LiveStats.py
Schermafbeelding 2023-02-24 om 15.37.34.png
Schermafbeelding 2023-02-24 om 15.37.34.png (258.97 KiB) Viewed 3112 times
python InverterExport.py
omnik.JPG
omnik.JPG (240.8 KiB) Viewed 3112 times
At the bottom you see de error;
ERROR HTTP error : 401 Reason: Unauthorized

You say the security update was also in 2022.2. I don't know if I came from 2022.1 or 2022.2. Mostly I do the update after 1 or 2 weeks because the "there is an update available" POP-UP is getting irritating
njlammerts
Posts: 149
Joined: Wednesday 12 August 2020 17:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Fryslan
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by njlammerts »

I think I just "fixed" it........ I hope (?)

I replaced the 127.0.0.1 with the actual IP of the Pi .

I run both Python scripts, and I get Omnik output reading (Watt, Voltage, Ampere, Temp)
Schermafbeelding 2023-02-24 om 16.03.33.png
Schermafbeelding 2023-02-24 om 16.03.33.png (352.33 KiB) Viewed 3110 times

I am very happy :-)
Rool
Posts: 3
Joined: Friday 10 May 2019 9:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by Rool »

Hi all,
Is it possible to downgrade from 2023 to 2022.2?
Where can i find the software download for 2022.2?

Regards Rool
User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by kiddigital »

Rool wrote:Hi all,
Is it possible to downgrade from 2023 to 2022.2?
Where can i find the software download for 2022.2?

Regards Rool
Not really. Why would you want to do that?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
simat
Posts: 33
Joined: Thursday 04 November 2021 21:17
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: UK
Contact:

Re: Domoticz downgrade from 2023.1 to 2022.2

Post by simat »

It is possible, I recently downgraded from 2023.1 right back to 2021.1 due to major problems with a Python Modbus RTU plugin.

Software is here https://github.com/domoticz/domoticz/releases it doesn't include an executable, you have to build it yourself, but that is easy enough by following the instructions at https://www.domoticz.com/wiki/Build_Dom ... rom_source

Obviously make a backup of everything 1st. You might have to do a git pull 1st to get the buildfiles and then extract the relevant source you downloaded over the top.

You then have to edit the domoticz.db file using https://sqlitebrowser.org/dl/ and change the DB_Version to 156 (for 2022.1) and 148 (for 2021.1) in the preference table and then click Write changes. See https://www.domoticz.com/wiki/Domoticz_ ... _-_Commits for database version details.

I built a fresh platform for it all to sit on and it now works perfect.

I hope this helps.
Attachments
SQL-DBedit194159.jpg
SQL-DBedit194159.jpg (70.67 KiB) Viewed 2884 times
Raspberry Pi4, Sunny Boy 4000TL, Victron Multiplus II 10kw ESS, 44kWh LiFEPO4, Batrium BMS, NodeRED on Cerbo GX
Toyoco69
Posts: 6
Joined: Saturday 29 April 2023 14:04
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Domoticz downgrade

Post by Toyoco69 »

Hello,

Thank you very much for this domoticz-db modification tip, it works great.

I would like to do a manual compilation, I followed the procedure: Build_Domoticz_from_source I would like to install Release 2022-2, what is the link to use ? because "git clone https://github .com/domoticz/domoticz . git dev-domoticz" install the latest version of domoticz!

Sincerely
Laurent
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest