-
Notifications
You must be signed in to change notification settings - Fork 819
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
[FR] Timestamp, Retain messages, Filter by name/prefix #1404
Comments
Hello,
This can be managed on the controller side, what do you think would be the added value of adding a timestamp at the firmware level versus adding it when the controller receives it? |
pardon me.. when you say "on the controller side", you mean on the devices connecting to the broker that subscribe to the sensors topics? (these are offline most of the time) (on a side note, there's a project similar in scope to OMQTTG, Zigbee2mqtt, has a last_seen option that does what the name suggests.. just discovered that while I was searching for my FR to Mosquitto devs) |
By Controller, I meant HA, OpenHAB, NodeRed... |
oh, well, that's because I don't use any, as I wrote in my initial post:
:) So, the advantage is that this solution is very lightweight, does not add complexity and above all, this is an information which directly pertains to the sensors (see my comment about Zigbee2Mqtt in the edit of previous message (Sorry, I was editing it while you were replying)) |
Ok I understand now your need, thanks for sharing |
Hi Tasmota explicitly supports it with a dedicated command: SensorRetain Shelly devices also support retaining, as documented here and finally, Steves' internet Guide had an excellent explanation on why having the Retained flag set is desirable on sensors, here:
Since we're talking about devices that are not MQTT enabled by themselves here, OMQTTG is the only entry point for such devices to have their info published in real time, and without requiring complex and resource-hungry controller systems. Sorry coming again at this, and again, thanks :) |
Having the capability to retain messages would be an easy add. |
thanks @1technophile , high hopes for that.. and also timestamping would be great, if possible.
and a shelly one:
Thanks :) |
Apart from MAC filtering by prefix, everything has been added in 1.5.0, thanks! |
Hi
Again, thanks for OpenMQTTGateway!
I'm using it since some day on an ESP32 and.. it's great :)
I have some ideas to propose, that (IMHO of course) could be of interest:
I've already a work-around in place for the points above (another client that is subscribed to OMQTTG topics and re-publishes them with timestamps and retain flag), but I think it would be more practical to have these features built-in (possibly without re-compiling)
As always, thanks for your support!
The text was updated successfully, but these errors were encountered: