Page 1 of 1

It works too good...

Posted: Sunday 09 January 2022 15:44
by sciurius
Autodeterct works too good. It even detects devices I no not have (anymore). And it keeps detecting (and adding) devices even when I remove them.

For example, I have a Tasmoto light bulb (Color switch, RGBWW, Dimmer) that is configured using a virtual device. Now we have autodetect, Domoticz detects it as a Light/Switch, Switch, Dimmer. This is a) not what it is, and b) since it gets detected under the same device name as the virtual device scripts that switch the light on/off start failing.

When I remove the autodetected device is simple returns after a while.

What am I doing wrong?

Re: It works too good...

Posted: Sunday 09 January 2022 15:59
by jvdz
I Guess you have RETAINED MQTT CONFIG messages?
Domoticz will register to the defined STATE Topics and create devices when a new state is received.

Re: It works too good...

Posted: Monday 10 January 2022 8:28
by sciurius
Maybe... I'm pretty sure I manually removed all config messages for this device from mqtt (using MQTT Explorer).

But the problem is more that using MQTT autodetect the type is not correctly detected (i.e., just a dimmable light and not an RGBWW light).

Re: It works too good...

Posted: Monday 10 January 2022 9:12
by jvdz
If you want us to have a look at discovery issues you'll have to share a copy of the MQTT Config messages for the LIGHT device so we can have a look and define what is discovered exactly and what is expected.

Cheers

Re: It works too good...

Posted: Tuesday 11 January 2022 8:06
by sciurius
That's what I did in viewtopic.php?p=284797#p284797

Re: It works too good...

Posted: Tuesday 11 January 2022 9:48
by jvdz
so this is still the same topic as you started with a question that removed discovery devices always returned ?
In case the other thread is not resolved and discovers wrong devices, you need to continue posting there with the addition questions/information to keep us sane. ;)