60ac42e711
zigbee-monitor.yaml: - Single click (action=single) toggles Squiggle, Sideboard Lamp, Bamboo Lights - Press-hold-release (action=release after hold) toggles DJ Booth only - Two filter functions: "Single click" and "Hold release", button-in fan-out wires to both - DJ Booth added to zigbee-state-in and ui-text widgets for visibility - "plugs:" list replaced with "single_plugs:" and "hold_plugs:" for declarative clarity (generator doesn't use them, but documents intent) infra/zigbee2mqtt/configuration.yaml: - Removed DJ Booth from "all_plugs" group (now Squiggle, Sideboard Lamp, Bamboo Lights only) - Pushed same change to live /root/zigbee2mqtt/configuration.yaml and restarted zigbee2mqtt container Diagnostics in justfile + scripts/: justfile: - Constants: RPI_HOST, MQTT_HOST, MQTT_PORT, RPI_DIR, NR_PORT - rpi, mqtt-pub, mqtt-sub, mqtt-watch, mqtt-button - nr-show, nr-diff, nr-logs, nr-editor, nr-dashboard - z2m-devices, z2m-logs, z2m-state - mqtt-logs, restart, restart-all scripts/mqtt.py: - MQTT publish/subscribe/watch helpers using paho-mqtt v2.x - Run via uv run --with paho-mqtt (no global install needed) scripts/diag.py: - nr-show: live flow summary with mqtt-out topic list - nr-diff: structural diff deployed vs repo, normalizes random uuids - z2m-devices: paired devices + group membership - mqtt-button: publish action and watch /set topics (E2E test) Verified end-to-end via `just mqtt-button`: single → 3 messages on .../set (Squiggle, Sideboard Lamp, Bamboo Lights) release → 1 message on .../set (DJ Booth)
34 lines
644 B
YAML
34 lines
644 B
YAML
version: 5
|
|
mqtt:
|
|
base_topic: zigbee2mqtt
|
|
server: mqtt://mosquitto:1883
|
|
serial:
|
|
port: /dev/ttyUSB0
|
|
adapter: blz
|
|
baudrate: 2000000
|
|
rtscts: false
|
|
advanced:
|
|
log_level: debug
|
|
frontend:
|
|
enabled: true
|
|
port: 8080
|
|
permit_join: false
|
|
groups:
|
|
'1':
|
|
friendly_name: all_plugs
|
|
devices:
|
|
- Squiggle
|
|
- Sideboard Lamp
|
|
- Bamboo Lights
|
|
devices:
|
|
'0xffffb40e0604fbd0':
|
|
friendly_name: Squiggle
|
|
'0xffffb40e06065536':
|
|
friendly_name: Door Button
|
|
'0xffffb40e0603c9e4':
|
|
friendly_name: Sideboard Lamp
|
|
'0xffffb40e06050af6':
|
|
friendly_name: Bamboo Lights
|
|
'0xffffb40e0603ef11':
|
|
friendly_name: DJ Booth
|