Error: Invalid Number Value: '%' for device idx: '%' Topic is solved

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
teo1966
Posts: 43
Joined: Saturday 18 November 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Contact:

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

Post by teo1966 »

Version: 2025.1 whit snap container
Platform: PI 3B
Plugin/Hardware: Zwave-js-ui: 10.8.0 / Zwave-js: 15.8.0 and Dashticz V3.18 master XTEND-plugin 1.01
Description:
I'm getting this error:
Error: Invalid Number Value: '%' for device idx: '%'
Any ideas?
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
teo1966
Posts: 43
Joined: Saturday 18 November 2017 12:09
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by teo1966 »

I don't know if it's related to this problem. The only devices with RFXMeter do show up in utility, but the Lacrosse TX3 and Depressure and the rest don't show up in temperature or switches.
Screenshot 2025-07-10 at 11-29-39 Domoticz.jpg
Screenshot 2025-07-10 at 11-29-39 Domoticz.jpg (218.99 KiB) Viewed 5187 times
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by waltervl »

teo1966 wrote: Thursday 10 July 2025 11:24
I'm getting this error:
Error: Invalid Number Value: '%' for device idx: '%'
In what context? Is there more in the log around this error?
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
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by waltervl »

teo1966 wrote: Thursday 10 July 2025 11:36 I don't know if it's related to this problem. The only devices with RFXMeter do show up in utility, but the Lacrosse TX3 and Depressure and the rest don't show up in temperature or switches.

Screenshot 2025-07-10 at 11-29-39 Domoticz.jpg
In menu Setup - Users do you have devices assigned to the user (admin?) you are logging into Domoticz? If admin then remove all those shared devices. See also the Note on this subject in the wiki:
https://wiki.domoticz.com/User_Management#Set_Devices
Note: It is advised not to set selected devices for an admin user as the rest of the devices will become invisible.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
PeJeWe
Posts: 70
Joined: Monday 28 November 2016 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by PeJeWe »

waltervl wrote: Thursday 10 July 2025 12:27
teo1966 wrote: Thursday 10 July 2025 11:36 I don't know if it's related to this problem. The only devices with RFXMeter do show up in utility, but the Lacrosse TX3 and Depressure and the rest don't show up in temperature or switches.

Screenshot 2025-07-10 at 11-29-39 Domoticz.jpg
In menu Setup - Users do you have devices assigned to the user (admin?) you are logging into Domoticz? If admin then remove all those shared devices. See also the Note on this subject in the wiki:
https://wiki.domoticz.com/User_Management#Set_Devices
Note: It is advised not to set selected devices for an admin user as the rest of the devices will become invisible.
i also get the error: Error: Invalid Number sValue: '%' for device idx: '%'
i have no selected devices signed to the admin account.
i get the error when i call: http://domoticzIP:port/json.htm?type=command&param=getdevices&filter=all&used=true
willemd
Posts: 793
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by willemd »

I only get this error if a plugin creates a P1 device and no value is uploaded to the device yet and then the device is queried for example via the user interface. Immediately after the first value update by the plugin the error disappears and everything functions normally. So it is a small bug in the Domoticz plugin framework.
Is this the same as your case? Do tou have any P1 devices from a plugin that are still without a value?
PeJeWe
Posts: 70
Joined: Monday 28 November 2016 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by PeJeWe »

willemd wrote: Saturday 16 May 2026 20:28 I only get this error if a plugin creates a P1 device and no value is uploaded to the device yet and then the device is queried for example via the user interface. Immediately after the first value update by the plugin the error disappears and everything functions normally. So it is a small bug in the Domoticz plugin framework.
Is this the same as your case? Do tou have any P1 devices from a plugin that are still without a value?
I do not have any problem with my p1 sensor.
I only have that error when i ask domoticz for a complete json device list.
willemd
Posts: 793
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by willemd »

You can try different filters to narrow down the problem.
PeJeWe
Posts: 70
Joined: Monday 28 November 2016 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by PeJeWe »

I have tried to shut off hardware things like mqtt broker, mqtt gateway, RFXCOM, internal running dzVents scripts, external python scripts, still getting the error randomly.
Has anyone still any ideas to narrow it down?
When I try to debug sql domoticz crashes.
And sometimes when I connect to the webgui domoticz reports having no sensors connected. And when I select another tab they re appear.
User avatar
jvdz
Posts: 2481
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by jvdz »

Have you checked the actual domoticz.db with SQLite Express to see if there are any devices in the devicestatus table that have a "wrong" value in the sValue column?
willemd
Posts: 793
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by willemd »

PeJeWe wrote: Thursday 28 May 2026 15:51 I have tried to shut off hardware things like mqtt broker, mqtt gateway, RFXCOM, internal running dzVents scripts, external python scripts, still getting the error randomly.
Has anyone still any ideas to narrow it down?
When I try to debug sql domoticz crashes.
And sometimes when I connect to the webgui domoticz reports having no sensors connected. And when I select another tab they re appear.
Did you try narrowing it down as suggested by adjusting the filter in your statement ?
http://domoticzIP:port/json.htm?type=command&param=getdevices&filter=all&used=true

According to the wiki you can use the following filters
light
weather
temp
utility
wind
rain
uv
baro
zwavealarms
PeJeWe
Posts: 70
Joined: Monday 28 November 2016 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by PeJeWe »

willemd wrote: Thursday 28 May 2026 19:15
PeJeWe wrote: Thursday 28 May 2026 15:51 I have tried to shut off hardware things like mqtt broker, mqtt gateway, RFXCOM, internal running dzVents scripts, external python scripts, still getting the error randomly.
Has anyone still any ideas to narrow it down?
When I try to debug sql domoticz crashes.
And sometimes when I connect to the webgui domoticz reports having no sensors connected. And when I select another tab they re appear.
Did you try narrowing it down as suggested by adjusting the filter in your statement ?
http://domoticzIP:port/json.htm?type=command&param=getdevices&filter=all&used=true

According to the wiki you can use the following filters
light
weather
temp
utility
wind
rain
uv
baro
zwavealarms
I have checkt it according your list and the following generates this error : utility and zwavealarms.
The lists are to long to present here.
how to narrow it down now?
willemd
Posts: 793
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.3
Location: The Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by willemd »

Check the values of the devices in those sublists, either by individual json queries or by using sql.
PeJeWe
Posts: 70
Joined: Monday 28 November 2016 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Netherlands
Contact:

Re: Error: Invalid Number Value: '%' for device idx: '%'

Post by PeJeWe »

I have found the 2 conflicting sensors.
one was a ghost sensor that was not in use anymore, and they other had bad data in it.
when this was deleted and restored the error dus not appear anymore.
thanks for the great help :lol:
Post Reply