Privatecoder / seplos-mqtt-remote-rs485

fetch data from one or multiple Seplos battery packs via (a) (remote) RS485 connection(s)
9 stars 3 forks source link

[Feature Request] message_expiry_interval #10

Open jwillmer opened 5 days ago

jwillmer commented 5 days ago

Described in this post: https://www.hivemq.com/blog/mqtt5-essentials-part4-session-and-message-expiry/

Will allow to define how long the last message will be kept in MQTT before it gets removed. Will help when connecting with new clients and using a high wait time between readings.

Privatecoder commented 5 days ago

what do we want that for? the sensor config definitions, the actual sensor data or both?

Privatecoder commented 5 days ago

currently "retain" is disabled as I was trying to prevent old/orphaned mqtt-sensor-definitions in HA when fiddling around with the tool...

jwillmer commented 5 days ago

i was thinking about reducing the logging to every 5 minutes or maybe even 15 minutes. I don't need the logs that detailed. Currently I disabled storing the metrics in home assistant because it generates way to many. But if I restart home assistant I dont want to wait 15 minutes to get my values displayed ;-)