-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] Add device ID to MQTT poll endpoint #681
Comments
I'm not sure what the "crazy syntax" is supposed to be. It's either a list of simple numbers in the same way you'd use them when using the web-interface or in the web-configuration, or a list of parameters in topic-notation. For most users (i.e. all users who use the BSB bus), they won't have to worry about the device ID anyway because in BSB, you will always use device ID 0. So in that case, those users would use exactly the same payload, just not send it to the topic |
The improvement is only to make the topic structure more clear. For all other get/set it requires device ID, but for polling you need to send device id inside the payload. This is inconsistent. If you want to poll a single parameter, you also need dev id in topic. So basically this is a suggestion to make it more clear with a consistent topic structure without using special sytax inside the payloads. It's a syntactic improvement because you are already improvig the topic structure, which is very nice now (although I would have used "state" or "get" instead of "status" for the getter. "status" is commonly used in MQTT only for online/offline LASTWILL messages)! |
The most logical syntax would be to use |
|
Bottom line, if I were to implement |
Let's keep this issue open for a while, this is mostly cosmetic, but let's others comment on that.
That's already implemented, but has the problem of not being bulky. Of course this perfectly fits the topic structure.
Of course. This is what I did before splitting the lists into multiple update frequencies. But for those who copypaste from web interface, it should poll on all devices, if no dev id is given in payload. Anyways, I am fine. It was just a discussion point. No need to implement anything. It keeps the discussion of your project alive on Github. |
Sure, I appreciate any suggestions!
|
OK, I thought the log settings poll on all devices. Sorry. I don't have multiple devices. |
While implementing the cool new MQTT
/poll
endpoint, I had that idea which IMHO would better fit the new topic structure:Currently the
/poll
MQTT endpoint is on top level. You can send parameters to update, but if you don't want the default device, you have to use some crazy syntax:I'd propose to use (conforming to the new topic structure)
/<devid>/poll
instead and simplyfiy the payload to only accept parameter numbers or category/parameter numbers pairs.This is just a suggestion for further improving the topic structure and get rid of crazy payload syntaxes. No need to implement that ASAP or at all. See it as discussion point.
The only downside of that syntax is that you need "one poll per device" which is IMHO acceptable.
The text was updated successfully, but these errors were encountered: