mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2024-11-17 02:48:31 -07:00
97a4b6b539
* Add support for expiring retained messages. For most of my environmental monitoring use cases, I want the readings retained so I can pick them up from clients at any time, but if the sensor (or zigbee2mqtt) fails, I want the readings to go away so I can tell the difference between a stale reading and a missing reading. This is easily accomplished in MQTTv5 using the "message expiry interval" property. To add that to zigbee2mqtt, I added a 'version' option to the mqtt section so I can specify to connect with version 5 and added a 'retention' property to devices allowing me to specify how long items should be retained. e.g. mqtt: base_topic: site/zigbee2mqtt server: 'mqtt://myserver' user: zigbee version: 5 serial: port: /dev/ttyACM0 devices: '0x00358d00022308da': friendly_name: someroom retain: true retention: 900 * Also get from deviceOptions * Update settings.js * Update controller.js Co-authored-by: Koen Kanters <koenkanters94@gmail.com> |
||
---|---|---|
.. | ||
data.js | ||
logger.js | ||
settings.js | ||
utils.js | ||
yaml.js |