Page 1 of 1

Could not find device in system

Posted: Tuesday 02 July 2024 9:45
by capman
I have some time a error in my log. But i can't find the problem.
I found no idx 0 in my app. Also looking in my events but found also nothing
with idx 0 in it. Somebody know how to fix this (database maybe) ?

Thanks.

Error: EventSystem: Could not find device in system: (idx 0)

Re: Could not find device in system

Posted: Tuesday 02 July 2024 11:35
by waltervl
Check for double names (same name for multiple devices). The name for each device should be unique.

Re: Could not find device in system

Posted: Tuesday 02 July 2024 12:56
by capman
Change some duplicated names. No luck :(
A lot of 'unknown' devices. These have all the same name ;)

Thanks 4 the reply.
screenshot of error
Schermafbeelding 2024-07-02 125042.jpg
Schermafbeelding 2024-07-02 125042.jpg (202.42 KiB) Viewed 2166 times

Re: Could not find device in system

Posted: Thursday 04 July 2024 9:06
by gizmocuz
Searching in the domoticz code, you find this line here:

CEventSystem::ProcessDevice

Are you using one of the below hardware/plugins:

- Kodi
- Logitech Media Server
- Panasonic TV

Did you update domoticz to the latest beta version and reverted to a previous version?

Re: Could not find device in system

Posted: Thursday 04 July 2024 21:07
by capman
Yes , a use Kodi and LMS hardware.
Should a remove them and then add them again ? Or ...

It's possible that a did in the past a reverse update 8-)

Re: Could not find device in system

Posted: Sunday 07 July 2024 9:35
by gizmocuz
Is it possible to disable these two hardware types and see if the error disappears?

Re: Could not find device in system

Posted: Monday 08 July 2024 9:56
by capman
When a disable kodi and LMS hardware the error stops :o .
Enable kodi > no error in log.
Enable LMS > the error is back.
Should a reinstall LMS hardware ?

Thanks.

Re: Could not find device in system

Posted: Monday 08 July 2024 11:51
by gizmocuz
I have no idea as I don't use this hardware. You at least found out where the problem is appearing from.
How about you select this hardware, disable it, press update
Give it another name, enable it, and press ADD, you just made a copy
Do you see the same errors with the copy?

Re: Could not find device in system

Posted: Monday 08 July 2024 17:39
by capman
That's it !! Just like you say :o
Finally , no more errors , thanks a lot :D
Just one question , how do you know to search in that direction ?

Re: Could not find device in system

Posted: Tuesday 09 July 2024 8:34
by gizmocuz
I downloaded the domoticz source code and searched for the error message.
This pointed me to the hardware that creates the error message.

Re: Could not find device in system

Posted: Tuesday 09 July 2024 9:23
by capman
Good 2 know 4 future errors :lol:
This topic can b marked as solved.