Phantom devices

User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Phantom devices

Post by berkinet »

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.
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

Post by berkinet »

Looking at the MQTT stream, it seems these phantom services are being propagated by the HE MQTT plugin. I will check with Kevin.
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Phantom devices

Post by autolog »

Have you gone in and edited the MQTT App settings to remove the devices?
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

Post by berkinet »

autolog wrote:Have you gone in and edited the MQTT App settings to remove the devices?
Yes.
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

Post by berkinet »

After emailing Kevin, I shut everything down (HE, broker (Mosquitto), MQTT Explorer, and the HE plugin and then restarted. Problem gone.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Phantom devices

Post by FlyingDiver »

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
User avatar
berkinet
Posts: 3441
Joined: Tue Nov 18, 2008 2:08 pm
Location: Berkeley, CA, USA & Mougins, France

Re: Phantom devices

Post by berkinet »

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?
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Phantom devices

Post by autolog »

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.
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Phantom devices

Post by FlyingDiver »

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
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

Re: Phantom devices

Post by autolog »

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 ;)
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

Re: Phantom devices

Post by FlyingDiver »

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
Post Reply

Return to “Hubitat”