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?
MQTT Device list
Moderators: leecollings, remb0
-
- Posts: 2
- Joined: Tuesday 03 January 2017 19:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: MQTT Device list
There is nonebexysiggetje wrote:I couldn't find a way to ask for a device list on MQTT.
-
- Posts: 2
- Joined: Tuesday 03 January 2017 19:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: MQTT Device list
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.
Who is online
Users browsing this forum: No registered users and 1 guest