infra: Pi wiring/runtime config — ttyUSB0, poll 60s, gateway SYS metrics, token via env_file

This commit is contained in:
2026-09-05 00:17:05 +00:00
parent 5c747899f6
commit 9874b7c25d
6 changed files with 13 additions and 3 deletions
+3
View File
@@ -22,3 +22,6 @@ infra/nodered/flows_cred.json
# operator tool pin
mise.toml
# per-service local secrets (env_file) - never commit
infra/**/.env
+4 -2
View File
@@ -41,7 +41,7 @@ services:
- ./zigbee2mqtt:/app/data
devices:
- source: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
target: /dev/ttyUSB1
target: /dev/ttyUSB0
permissions: rw
entrypoint: ["/app/data/scripts/entrypoint.sh"]
command: ["/sbin/tini", "--", "node", "index.js"]
@@ -102,12 +102,14 @@ services:
condition: service_healthy
volumes:
- ./doorbell-listener/state:/data/doorbell-listener
env_file:
- ./doorbell-listener/.env
environment:
MQTT_HOST: 192.168.81.147
MQTT_PORT: "1883"
PLUG_TOPIC: "zigbee2mqtt/Squiggle/set"
PROBE_PLUG_TOPIC: "zigbee2mqtt/DoorbellProbe/set"
POLL_INTERVAL: "5"
POLL_INTERVAL: "60"
MAX_AGE_SECONDS: "180"
FLASH_INTERVAL_SECONDS: "1"
FLASH_DURATION_SECONDS: "7"
+1
View File
@@ -1 +1,2 @@
topic readwrite msh/#
topic read $SYS/#
+2
View File
@@ -3,3 +3,5 @@ allow_anonymous true
acl_file /mosquitto/config/acl.conf
persistence false
log_dest stdout
sys_interval 10
+2
View File
@@ -7,3 +7,5 @@ password_file /mosquitto/config/passwd
persistence true
persistence_location /mosquitto/data
log_dest file /mosquitto/log/mosquitto.log
sys_interval 10
+1 -1
View File
@@ -3,7 +3,7 @@ mqtt:
base_topic: zigbee2mqtt
server: mqtt://mosquitto:1883
serial:
port: /dev/ttyUSB1
port: /dev/ttyUSB0
adapter: blz
baudrate: 2000000
rtscts: false