Friday, 26 June 2026

Moving Zigbee smart home sensors to Python3 monitoring (from Node-Red)

So I though a more punchy system service with journal logging might be better than using the web portal or Node-Red logging.

This is the current state of play of all my smart home Zigbee devices:

Sonoff ZbBridge Tasmota_ZbBridge router (192.168.1.151) running Tasmota 12.2.0 by Theo Arends that knows of these devices..


Front Door 🕗19h

Front Presence SNZB06P 🕗95d

Kitchen Door 🕗56m

kitchen window 🕗04h

TRV Frontroom 🕗48d ┆ ☀️ 0.5°C 🎯 6.2°C ⚙️ 0%

TRV James Bedroom 🕗28m ┆ ☀️ 0.5°C 🎯 3.5°C

unknown device ┆ Off

Yard Presence SNZB06P

 back_bedroom 🕗72d ┆ ☀️ 17.8°C 💧 84%

Bathroom 🕗06m ┆ ☀️ 27.0°C 💧 74%

bathroom window 🕗11h

electric blanket 🕗43m┆ Off

Electric Heater ┆ ☀️ 12.1°C

Front Room Ceiling Light  ┆ On 🔅 0% #FF0000

front_bedroom ┆ ☀️ 16.3°C 💧 77%

front_room_3x_power ┆ On

Frontroom ┆ ☀️ 20.2°C 💧 68%

Hallway 🕗39m ┆ ☀️ 18.5°C 💧 78%

Kitchen 🕗48m┆ ☀️ 23.7°C 💧 89%

Kitchen Repeater  ðŸ•—23h

kitchen_led 🕗10m┆ Off 🔅 0% #FF0000

Office 🕗04m┆ ☀️ 25.1°C 💧 75%

PIR Pergola  

PIR Porch 🕗31d

PIR Studio  

Shower Pump Switch 🕗01h

SNZB02D Front room window ┆ ☀️ 19.2°C 💧 50%

SNZB02D James Bedroom 🕗03m┆ ☀️ 24.7°C 💧 68%

Tony Bedroom Door  

tony_LED ┆ Off 🔅 0% #FF0000

tonys window 🕗62d

TRV Front Room ┆ ☀️ 17.0°C 🎯 15.0°C ⚙️ 0%

TRV Kitchen 🕗08m┆ ☀️ 0.5°C 🎯 3.5°C ⚙️ 0%

TRV Office 🕗00m┆ ☀️ 0.5°C 🎯 3.5°C

TRV Seans Bedroom 🕗06m┆ ☀️ 0.5°C 🎯 3.5°C

TRV Tonys Bedroom ┆ ☀️ 18.5°C 🎯 15.0°C ⚙️ 0%

Upstairs Repeater 🕗19h

Device 0x130C  

Device 0x135E 🕗06m

Device 0x16AD  

Device 0x3794 ┆ Off 🔅 0% #FF0000

Device 0x4B3E

Device 0x6568

Device 0x6640

Device 0x803A 🕗62d┆ On

Device 0x8826  

Device 0x894A  

Device 0xABAD  

Device 0xCFF7  

Device 0xEE12  

Device 0xF394

 

So this is a mess! So I will audit every mentioned device and checking its still communicating and changing its name to include its adress, location and function.. e.g  0xXXXX_kitchen_TRV

zblist command on web consule returns


10:31:45.936 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0xEE12":{"Device":"0xEE12","IEEEAddr":"0xBC33ACFFFE37F766","Endpoints":[],"Config":[],"Reachable":false,"LastSeen":43334975,"LastSeenEpoch":1739131330,"LinkQuality":92}}}

10:31:45.954 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x130C":{"Device":"0x130C","IEEEAddr":"0x0000000000000000","Endpoints":[1],"Config":["I01"],"Occupancy":0,"Reachable":false,"LastSeen":13798156,"LastSeenEpoch":1768668149,"LinkQuality":76}}}

10:31:45.971 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x6640":{"Device":"0x6640","IEEEAddr":"0x00124B001CD60DD6","ModelId":"TH01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"LastSeen":37289674,"LastSeenEpoch":1745176631,"LinkQuality":89}}}

10:31:45.988 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x8826":{"Device":"0x8826","IEEEAddr":"0x00124B001F918A6E","ModelId":"TH01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"LastSeen":37288605,"LastSeenEpoch":1745177700,"LinkQuality":63}}}

10:31:46.002 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x894A":{"Device":"0x894A","IEEEAddr":"0x00124B001F91D531","ModelId":"TH01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"LastSeen":37288485,"LastSeenEpoch":1745177820,"LinkQuality":81}}}

10:31:46.017 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x16AD":{"Device":"0x16AD","IEEEAddr":"0x00124B001F918CBF","ModelId":"TH01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"LastSeen":37288166,"LastSeenEpoch":1745178140,"LinkQuality":84}}}

10:31:46.034 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0xF394":{"Device":"0xF394","IEEEAddr":"0x00124B001CD5956C","ModelId":"TH01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"LastSeen":37287943,"LastSeenEpoch":1745178363,"LinkQuality":128}}}

10:31:46.049 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0xCFF7":{"Device":"0xCFF7","IEEEAddr":"0x00124B001F91991B","ModelId":"WB01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"LastSeen":37286879,"LastSeenEpoch":1745179427,"LinkQuality":63}}}

10:31:46.066 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0xABAD":{"Device":"0xABAD","IEEEAddr":"0x00124B001FAF2ACC","ModelId":"MS01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"BatteryPercentage":100,"BatteryLastSeenEpoch":1745179511,"LastSeen":37237312,"LastSeenEpoch":1745228994,"LinkQuality":50}}}

10:31:46.084 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x4B3E":{"Device":"0x4B3E","IEEEAddr":"0x00124B001FAF4F89","ModelId":"ms01","Manufacturer":"eWeLink","Endpoints":[1],"Config":[],"Reachable":false,"BatteryPercentage":100,"BatteryLastSeenEpoch":1745179507,"LastSeen":37237312,"LastSeenEpoch":1745228994,"LinkQuality":48}}}

10:31:46.103 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x3794":{"Device":"0x3794","IEEEAddr":"0x0000000000000000","Endpoints":[1],"Config":["L01","O01"],"Dimmer":1,"Hue":0,"Sat":254,"X":45874,"Y":19660,"CT":500,"ColorMode":2,"RGB":"FF0000","RGBb":"010000","Power":0,"Reachable":false,"LastSeen":12825219,"LastSeenEpoch":1769641087,"LinkQuality":29}}}

10:31:46.121 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x6568":{"Device":"0x6568","IEEEAddr":"0x0000000000000000","Endpoints":[],"Config":[],"Reachable":false,"LastSeen":9646458,"LastSeenEpoch":1772819848,"LinkQuality":58}}}

10:31:46.138 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbInfo":{"0x135E":{"Device":"0x135E","IEEEAddr":"0x0000000000000000","Endpoints":[1],"Config":["I01"],"Occupancy":0,"Reachable":true,"LastSeen":443,"LastSeenEpoch":1782465863,"LinkQuality":115}}}

10:31:46.152 MQT: stat/tasmota_zbbridge_0576A9/RESULT = {"ZbInfo":"Done"}


We need a list by device address !

10:33:54.401 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbReceived":{"0xEF0E":{"Device":"0xEF0E","Name":"Bathroom","BatteryPercentage":64,"Endpoint":1,"LinkQuality":102}}}

10:34:21.904 MQT: tele/tasmota_zbbridge_0576A9/SENSOR = {"ZbReceived":{"0xE1B9":{"Device":"0xE1B9","Name":"Office","Temperature":25.3,"Endpoint":1,"LinkQuality":102}}}


0xEF0E Bathroom 



Sonoff  SNZB-01P Switch

Sonoff SNZB-02    Temperature and Humidity


Fresh audit..

Tonys Bedroom  SNZB-02"Device":"0x9AFE","Name":"back_bedroom" needs CR2450 battery

now online


No comments:

Post a Comment