Page 1 of 1

MQTT Device list

Posted: Tuesday 03 January 2017 19:20
by bexysiggetje
Hi, I'm developing a small application in the browser using MQTT over websockets. Using JSON you can get a list of devices, via /json.htm?type=devices&used=true. I couldn't find a way to ask for a device list on MQTT. I'm looking to create a table in my application of all devices with their idx, name and switchtype. Otherwise I would have to implement some sort of learning function to keep things userfriendly.

So basically; the documentation on MQTT is a little scarse, does such a method exist? Or do you have other options?

Re: MQTT Device list

Posted: Tuesday 03 January 2017 21:58
by SweetPants
bexysiggetje wrote:I couldn't find a way to ask for a device list on MQTT.
There is none

Re: MQTT Device list

Posted: Tuesday 03 January 2017 22:14
by bexysiggetje
I was pretty thorough on my search, figured as much. Okay, I just started on a learning mode. Just trigger a switch from Domoticz and i'll pick it up from domoticz/out and then remember it. Looks like the best option then, otherwise I would also need to poll the json api, which is not what I want.