Phantom devices

Posted on
Sun Apr 23, 2023 2:15 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Phantom devices

When creating a new Indigo Hubitat device, In the available HE device list, I see a few HE devices that no longer exist. That is, they did exist in HE at some point, but were removed. These devices do not appear in the HE device list and are not published from the HE MQTT app. I have rebooted both devices several times. Obviously, something, somewhere, is caching the information.

This is certainly not a big problem. But, it seemed worth reporting.

Posted on
Mon Apr 24, 2023 4:39 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

Looking at the MQTT stream, it seems these phantom services are being propagated by the HE MQTT plugin. I will check with Kevin.

Posted on
Mon Apr 24, 2023 4:50 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Phantom devices

Have you gone in and edited the MQTT App settings to remove the devices?

Posted on
Mon Apr 24, 2023 5:04 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

autolog wrote:
Have you gone in and edited the MQTT App settings to remove the devices?
Yes.

Posted on
Tue Apr 25, 2023 5:40 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

After emailing Kevin, I shut everything down (HE, broker (Mosquitto), MQTT Explorer, and the HE plugin and then restarted. Problem gone.

Posted on
Tue Apr 25, 2023 6:10 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Phantom devices

Those discovery messages might have been tagged as "retained", so the MQTT broker was saving them and re-transmitting. Restarting the broker would have cleared that.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Apr 25, 2023 6:44 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

FlyingDiver wrote:
Those discovery messages might have been tagged as "retained", so the MQTT broker was saving them and re-transmitting. Restarting the broker would have cleared that.

In that case, would the option to control retention, if it exists, be somewhere in the HE MQTT app?

Posted on
Tue Apr 25, 2023 8:15 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Phantom devices

berkinet wrote:
In that case, would the option to control retention, if it exists, be somewhere in the HE MQTT app?

Yes, retention is specified by the App doing the publishing AFAIK.

Posted on
Tue Apr 25, 2023 8:38 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Phantom devices

I can sorta see why they might want to discovery messages to be retained, so a client gets an immediate list of devices without waiting for them to advertise themselves again.

If they do that, then they should also be sending out a (retained) message when they shut down to cancel the previous message. It's possible that the broker is sending those shutdown messages again but the plugin isn't acting on them.

Or, it's just broken. ;)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Apr 25, 2023 8:46 am
autolog offline
Posts: 3991
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Phantom devices

FlyingDiver wrote:
.... It's possible that the broker is sending those shutdown messages again but the plugin isn't acting on them.. Or, it's just broken. ;)

Quite possible on both counts ;)

Posted on
Tue Apr 25, 2023 8:48 am
FlyingDiver offline
User avatar
Posts: 7222
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Phantom devices

autolog wrote:
FlyingDiver wrote:
.... It's possible that the broker is sending those shutdown messages again but the plugin isn't acting on them.. Or, it's just broken. ;)

Quite possible on both counts ;)


I was referring to the HE app. :)

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests