MQTT Device list

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
bexysiggetje
Posts: 2
Joined: Tuesday 03 January 2017 19:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

MQTT Device list

Post 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?
SweetPants

Re: MQTT Device list

Post by SweetPants »

bexysiggetje wrote:I couldn't find a way to ask for a device list on MQTT.
There is none
bexysiggetje
Posts: 2
Joined: Tuesday 03 January 2017 19:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: MQTT Device list

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

Who is online

Users browsing this forum: No registered users and 1 guest