-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
Suggestion : Allow for MQTT topic assigment for attributes in objects #577
Comments
The main issue I can see is why should val be treated differently to other objects? |
I'll try with OpenBEKEN. |
OpenBEKEN can handle it with this command.
Nevertheless you are not always in control of the topic (third party devices etc), so it still might be something to consider. And yes I like your suggestion to not only allow that for
|
It's not just the topic but also the payload property to use, so not quite that simple. |
This is typically the function of an Home Automation System, to keep tabs on all devices and convert topic/payload/protocol where needed. This should not be the functionality of a display-controller. |
Running Version 0.7.0-rc6
I have an object defined as :
{"page":0,"id":5,"obj":"bar","x":0,"y":30,"h":30,"w":100, "min":0, "max":100,"val":22}
I can change the text by publishing raw value
88
via MQTT to topichasp/plate/command/p0b5.val
My sensor publishes every 5 seconds a raw temperature value to
sensor1/temp
Suggest
Allow for topic to be added directly to the object.
{"page":0,"id":5,"obj":"bar","x":0,"y":30,"h":30,"w":100, "min":0, "max":100,"val":{"srctopic":"sensor1/temp"}}
The
"val":{"srctopic":"sensor1/temp"}
would mean that published value in thesrctopic
would set the value.This would save a lot of workarounds like mqtt-mqtt republishing, and in the case of multiple devices would ease the effort of configuring.
A lot of smart devices eg the ones flashed with OpenBeken https://github.com/openshwprojects/OpenBK7231T_App publish directly any value there.
Questions
complex syntax like
user:passw@mqtt://topicpath/:1883
Or allow actions to publish to custom topics as well?
Any thoughts would be appreciated.
The text was updated successfully, but these errors were encountered: