Add configurable device aliases
This commit is contained in:
@@ -52,6 +52,7 @@ Supported environment variables:
|
||||
- `MQTT_SCRUBBER_INFLUX_DATABASE`
|
||||
- `MQTT_SCRUBBER_INFLUX_TOKEN`
|
||||
- `MQTT_SCRUBBER_INFLUX_PRECISION`
|
||||
- `MQTT_SCRUBBER_DEVICE_ALIASES` as a JSON object such as `{"kitchen_plug":"Kitchen Plug"}`
|
||||
- `MQTT_SCRUBBER_APP_BATCH_SIZE`
|
||||
- `MQTT_SCRUBBER_APP_BUFFER_SIZE`
|
||||
- `MQTT_SCRUBBER_APP_FLUSH_INTERVAL`
|
||||
@@ -61,6 +62,8 @@ Supported environment variables:
|
||||
|
||||
`MQTT_SCRUBBER_MQTT_TOPICS` expects a comma-separated list.
|
||||
|
||||
You can also define optional per-device aliases in config with a top-level `device_aliases` object. Keys are normalized like device tags, so `kitchen-plug`, `Kitchen Plug`, and `kitchen_plug` all resolve to `kitchen_plug`.
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
@@ -135,6 +138,8 @@ Relay panels use the latest `power`, `power1`, `power2`, `power3`, and `power4`
|
||||
|
||||
The dashboard is split into a fleet summary section and a selected-device section. The selected-device section also includes `Last Seen`, `Seconds Since Last Message`, and `Messages In Range` panels derived from both `tasmota_state` and `tasmota_sensor` timestamps.
|
||||
|
||||
If `device_aliases` is configured, the summary table will expose an `alias` column populated from the latest state or sensor record for each device.
|
||||
|
||||
## Notes
|
||||
|
||||
- The repo name is kept as `mqqt-scrubber` to match the existing folder.
|
||||
|
||||
Reference in New Issue
Block a user