From 09a432896003d1929e7d875c0eb0df6fe3390d97 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Wed, 1 Jul 2026 02:46:40 -0700 Subject: [PATCH] doorbell-listener: poll every 5s (was 30s) for tighter lag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (//sse) - tracked separately. --- infra/compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/compose.yaml b/infra/compose.yaml index aa0f66c..350b93a 100644 --- a/infra/compose.yaml +++ b/infra/compose.yaml @@ -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"