Add initial MQTT scrubber service scaffold

This commit is contained in:
2026-03-12 18:12:16 +01:00
parent 957b2c41b3
commit 464f4c3ec4
22 changed files with 4150 additions and 1 deletions
+148
View File
@@ -0,0 +1,148 @@
[
{
"name": "lwt-online",
"topic": "tele/tasmota_896001/LWT",
"payload": "Online",
"received_at": "2026-03-12T15:21:39Z",
"expected_measurement": "tasmota_lwt",
"expected_timestamp": "2026-03-12T15:21:39Z",
"expected_tags": {
"device": "tasmota_896001",
"message_type": "lwt",
"source": "tasmota"
},
"expected_fields": {
"state": "Online",
"online": true
}
},
{
"name": "lwt-offline-hyphenated-device",
"topic": "tele/tasmota-prusa-mini/LWT",
"payload": "Offline",
"received_at": "2026-03-12T15:21:39Z",
"expected_measurement": "tasmota_lwt",
"expected_timestamp": "2026-03-12T15:21:39Z",
"expected_tags": {
"device": "tasmota_prusa_mini",
"message_type": "lwt",
"source": "tasmota"
},
"expected_fields": {
"state": "Offline",
"online": false
}
},
{
"name": "state-single-relay",
"topic": "tele/tasmota_67850B/STATE",
"payload": "{\"Time\":\"2025-10-28T11:56:55\",\"Uptime\":\"0T15:35:12\",\"UptimeSec\":56112,\"Heap\":27,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":19,\"MqttCount\":1,\"POWER\":\"ON\",\"Wifi\":{\"AP\":1,\"SSId\":\"Home_MiNi_smart\",\"BSSId\":\"02:E2:C6:A9:5F:E9\",\"Channel\":6,\"RSSI\":78,\"Signal\":-61,\"LinkCount\":1,\"Downtime\":\"0T00:00:05\"}}",
"received_at": "2025-10-28T11:56:54Z",
"expected_measurement": "tasmota_state",
"expected_timestamp": "2025-10-28T11:56:55Z",
"expected_tags": {
"device": "tasmota_67850b",
"message_type": "state",
"source": "tasmota"
},
"expected_fields": {
"power": "ON",
"uptime_sec": 56112,
"wifi_rssi": 78,
"wifi_signal": -61
}
},
{
"name": "state-multi-relay",
"topic": "tele/tasmota_725D2D/STATE",
"payload": "{\"Time\":\"2026-03-12T16:23:14\",\"Uptime\":\"4T07:10:12\",\"UptimeSec\":371412,\"Heap\":24,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":19,\"MqttCount\":1,\"POWER1\":\"OFF\",\"POWER2\":\"OFF\",\"POWER3\":\"OFF\",\"POWER4\":\"OFF\",\"Wifi\":{\"AP\":1,\"SSId\":\"Home_MiNi_smart\",\"BSSId\":\"02:E2:C6:A9:5F:E9\",\"Channel\":6,\"Mode\":\"11n\",\"RSSI\":58,\"Signal\":-71,\"LinkCount\":1,\"Downtime\":\"0T00:00:05\"}}",
"received_at": "2026-03-12T16:23:14Z",
"expected_measurement": "tasmota_state",
"expected_timestamp": "2026-03-12T16:23:14Z",
"expected_tags": {
"device": "tasmota_725d2d",
"message_type": "state",
"source": "tasmota"
},
"expected_fields": {
"power1": "OFF",
"power4": "OFF",
"wifi_mode": "11n",
"wifi_rssi": 58
}
},
{
"name": "state-with-berry",
"topic": "tele/tasmota_C8BD20/STATE",
"payload": "{\"Time\":\"2026-03-12T16:23:11\",\"Uptime\":\"4T07:10:08\",\"UptimeSec\":371408,\"Heap\":142,\"SleepMode\":\"Dynamic\",\"Sleep\":50,\"LoadAvg\":19,\"MqttCount\":2,\"Berry\":{\"HeapUsed\":4,\"Objects\":46},\"POWER\":\"ON\",\"Wifi\":{\"AP\":1,\"SSId\":\"Home_MiNi_smart\",\"BSSId\":\"32:5A:4C:53:3F:56\",\"Channel\":1,\"Mode\":\"HE20\",\"RSSI\":96,\"Signal\":-52,\"LinkCount\":1,\"Downtime\":\"0T00:00:03\"}}",
"received_at": "2026-03-12T16:23:11Z",
"expected_measurement": "tasmota_state",
"expected_timestamp": "2026-03-12T16:23:11Z",
"expected_tags": {
"device": "tasmota_c8bd20",
"message_type": "state",
"source": "tasmota"
},
"expected_fields": {
"berry_heap_used": 4,
"berry_objects": 46,
"power": "ON",
"wifi_mode": "HE20"
}
},
{
"name": "sensor-energy-only",
"topic": "tele/tasmota_C88994/SENSOR",
"payload": "{\"Time\":\"2026-03-12T16:23:13\",\"ENERGY\":{\"TotalStartTime\":\"2026-02-04T19:13:40\",\"Total\":41.385,\"Yesterday\":1.124,\"Today\":0.799,\"Period\":0,\"Power\":1,\"ApparentPower\":4,\"ReactivePower\":4,\"Factor\":0.22,\"Voltage\":231,\"Current\":0.016}}",
"received_at": "2026-03-12T16:23:13Z",
"expected_measurement": "tasmota_sensor",
"expected_timestamp": "2026-03-12T16:23:13Z",
"expected_tags": {
"device": "tasmota_c88994",
"message_type": "sensor",
"source": "tasmota"
},
"expected_fields": {
"energy_power": 1,
"energy_voltage": 231,
"energy_total": 41.385,
"energy_current": 0.016
}
},
{
"name": "sensor-analog-temperature",
"topic": "tele/tasmota_896001/SENSOR",
"payload": "{\"Time\":\"2026-03-12T16:25:38\",\"ANALOG\":{\"Temperature\":33.8},\"ENERGY\":{\"TotalStartTime\":\"2022-12-30T00:18:41\",\"Total\":1.413,\"Yesterday\":0.000,\"Today\":0.000,\"Period\":0,\"Power\":0,\"ApparentPower\":0,\"ReactivePower\":0,\"Factor\":0.00,\"Voltage\":0,\"Current\":0.000},\"TempUnit\":\"C\"}",
"received_at": "2026-03-12T16:25:38Z",
"expected_measurement": "tasmota_sensor",
"expected_timestamp": "2026-03-12T16:25:38Z",
"expected_tags": {
"device": "tasmota_896001",
"message_type": "sensor",
"source": "tasmota"
},
"expected_fields": {
"analog_temperature": 33.8,
"temp_unit": "C",
"energy_total": 1.413
}
},
{
"name": "sensor-analog-a0",
"topic": "tele/tasmota_725D2D/SENSOR",
"payload": "{\"Time\":\"2026-03-12T16:23:14\",\"ANALOG\":{\"A0\":1024},\"ENERGY\":{\"TotalStartTime\":\"2025-05-23T14:48:03\",\"Total\":15.782,\"Yesterday\":0.000,\"Today\":0.000,\"Period\":0,\"Power\":0,\"ApparentPower\":0,\"ReactivePower\":0,\"Factor\":0.00,\"Voltage\":0,\"Current\":0.000}}",
"received_at": "2026-03-12T16:23:14Z",
"expected_measurement": "tasmota_sensor",
"expected_timestamp": "2026-03-12T16:23:14Z",
"expected_tags": {
"device": "tasmota_725d2d",
"message_type": "sensor",
"source": "tasmota"
},
"expected_fields": {
"analog_a0": 1024,
"energy_total": 15.782,
"energy_power": 0
}
}
]