Not a big issue but I am working on some Hub Mesh designs this morning and noticed that when I turn on Hub Mesh on my primary hub and shared my first device which was the Office-Lamp my UPS child device now also shows being shared. Checked on my destination hub and the only device being published is the office lamp. I also checked the devices on the originating hub and it has no option to share.
So my question is what in the code triggers the condition that makes it shared?


What is "NUT Child UPS" a (presumably) child device of? If the parent device is shared, the child devices come along, and child devices do not have their own toggle or any other ability to be shared separately from the parent.
2 Likes
Here is the parent device you can see that the slider is off.
1 Like
OH well I tired everything, Toggled the mesh for the parent device on and off, removed and reinstalled the device, and still it shows up as a shared device from the parent hub. On the other hub all that shows up is the office lamp. I'll just let this one stew in the land of limbo.
Not sure what could be going on, but perhaps @gopher.ny might be able to take a closer look.
You can force share/unshare a device using a direct endpoint:
/hubMesh/setDeviceShared/123/false
Here 123 is the device id (it appears in device details URL) and false can be true/false to share/unshare the device. It works even if there is no hub mesh toggle on the device page.
This endpoint was specifically added to clean up the child devices like the one described above. I don't recommend using it for any other purpose.
1 Like