doorbell-listener: poll every 5s (was 30s) for tighter lag
ntfy /json?poll=1 is regular polling, not long-poll. Worst-case lag = 2 × POLL_INTERVAL × N_topics = 120s at 30s. Reducing to 5s caps lag at ~20s with 2 topics. For sub-second latency, switch to ntfy SSE (/<topic>/sse) - tracked separately.
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ services:
|
||||
MQTT_HOST: mosquitto
|
||||
MQTT_PORT: "1883"
|
||||
PLUG_TOPIC: "zigbee2mqtt/Sideboard Lamp/set"
|
||||
POLL_INTERVAL: "30"
|
||||
POLL_INTERVAL: "5"
|
||||
MAX_AGE_SECONDS: "180"
|
||||
FLASH_INTERVAL_SECONDS: "1"
|
||||
FLASH_DURATION_SECONDS: "14"
|
||||
|
||||
Reference in New Issue
Block a user