esphome / esphome/feature-requests

Support for MQTT-SN

Open
#206 4 comments 0 reactions 0 assignees View on GitHub
component: mqtt Type: Communication Channel
Dominant language
No language data
Stars
450
Forks
29
PR merge metrics
No merged PRs in 30d

Description

Some sensors live in a low power state, and only wake up when triggered (eg. https://github.com/brandond/esphome-tuya_pir ).

The overhead of connecting to the network, then connecting to MQTT and sending data can add quite a bit of latency, in the above example, there is around 3-4 seconds from when motion is detected to when an action is triggered by this.

The connection latency can be minimised by using fast_connect in the wifi settings, and a static IP, however, there is still significant overhead to establish the MQTT connection.

Supporting MQTT/SN (http://mqtt.org/tag/mqtt-sn) will eliminate the MQTT connection latency - the device can wake up, connect to the network, fire off it's UDP packets and go back to sleep, (optionally waiting for a response if QOS is set).

Add support for MQTT/SN.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.