Page 1 of 1

error in creating units

Posted: Monday 04 December 2023 21:41
by JanJaap
Hi since a couple of days, I think there is an issue in creating new units in a device in the extended framework. I'm curious if other people have the same issue or something is corrupt on my side.

What happens is that the DomoticzEx.Unit().Create() method executes successful (no error reported) and there is an entry in the DeviceStatus table. However, the ID column (first column) is not filled:

Code: Select all

|20|54200DSN196R0358|14|Inverter input 1 power (SN: 54200DSN196R0358)||243|29|0||12|255|0|  0.0;      0.00||||||||||||||
|20|54200DSN196R0358|7|Inverter input 2 voltage (SN: 54200DSN196R0358)||243|8|0||12|255|0|0V||||||||||||||
|20|54200DSN196R0358|8|Inverter input 2 Current (SN: 54200DSN196R0358)||243|23|0||12|255|0|0A||||||||||||||
|20|54200DSN196R0358|15|Inverter input 2 power (SN: 54200DSN196R0358)||243|29|0||12|255|0|  0.0;      0.00||||||||||||||
This than leads to errors when trying to update. Also, the devices are not shown on the devices tab in Domoticz.

Running (now) on build 15697, started a couple of days back (not sure which build but it should be a relatively new one as I update regularly). Running RPi 3B on BullsEye.

You can reproduce it by creating a small plugin that adds 1 unit to a device, for example with this plugin