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:
2026-07-01 02:46:40 -07:00
parent 7ed170acd4
commit 09a4328960
+1 -1
View File
@@ -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"