Version 2026.1 Error Log now shows device idx name, but not for every entry

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
imautohuttraeger
Posts: 384
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by imautohuttraeger »

I am happy that the new error logs are also showing device information which helped me already with another issue. However, I have one error log, where it is still not shown:

Error: Invalid Number sValue: '%' for device idx: '%'

Is there any possibility to get the IDX that causes this problem?
Last edited by imautohuttraeger on Saturday 28 March 2026 14:17, edited 1 time in total.
Stop, look and listen.
User avatar
waltervl
Posts: 7003
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by waltervl »

You perhaps can add extra debugging options in menu Setup - Settings, tab Logs to identify the IDX?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
imautohuttraeger
Posts: 384
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by imautohuttraeger »

I have activated all the options of the lock levels and now the system is hanging . Is there any possibility for me to start the system in a minor environment, so I can deactivate these lock levels?
Stop, look and listen.
User avatar
imautohuttraeger
Posts: 384
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by imautohuttraeger »

All clear: Fortunately, after restarting domoticz, the log level check boxes are automatically deactivated again.

However, even if I activate one log level option after the other, there is no hint on idx in the lock errors
Stop, look and listen.
User avatar
gizmocuz
Posts: 3023
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by gizmocuz »

I have found the lines with these errors, they are in WebServer.cpp line 2827/2832

Code: Select all

						result2 = m_sql.safe_query("SELECT Value FROM Meter WHERE (DeviceRowID='%q' AND Date>='%q') ORDER BY Date LIMIT 1", sd[0].c_str(), szDate);
						if (!result2.empty())
						{
							std::vector<std::string> sd2 = result2[0];
							if (sd2[0].empty())
							{
								_log.Log(LOG_ERROR, "Empty Value in Meter table for device idx: '%q'", sd[0].c_str());
								continue;
							}
							if (!is_number(sValue))
							{
								_log.Log(LOG_ERROR, "Invalid Number sValue: '%q' for device idx: '%q'", sValue.c_str(), sd[0].c_str());
								continue;
							}
							if (!is_number(sd2[0]))
							{
								_log.Log(LOG_ERROR, "Invalid Number value: '%q' for device idx: '%q'", sd2[0].c_str(), sd[0].c_str());
								continue;
							}
This should give you a hint. Have you been poking in the database with a script?
Quality outlives Quantity!
User avatar
imautohuttraeger
Posts: 384
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by imautohuttraeger »

Thx for this research. I don't even now how to "poke the database with a script". For scripting, I am more / less only able to copy code and amend it for my needs by trial and error.But without really knowing what I do ... so maybe unintentionally ...

Your hint brings me to the idea, to deactivate each script ceteris paribus and see, if the error disappears.
Stop, look and listen.
User avatar
imautohuttraeger
Posts: 384
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Version 2026.1 Error Log now shows device idx name, but not for every entry

Post by imautohuttraeger »

I came a little step foreward. Deactivating scripts had no effect.

But meanwhile I detected, that the error occurs every time, the log of any utility device is opened forces this error exactly at the time when you click on "back". (The log of other devices like switches etc. has no effect on this.)

However, the error also seems to appear, when no user interaction is made. But with the "method" described above it can be forced. See video capture with the link below.

https://photos.app.goo.gl/osi34Z3ysKi4ssyaA
Stop, look and listen.
Post Reply