arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.17k stars 4.8k forks source link

sonoff SNZB-04 not reporting "Contact" for zbinfo command #20850

Closed 2bontb closed 8 months ago

2bontb commented 8 months ago

PROBLEM DESCRIPTION

When you issue an zbinfo all sonoff sensors show the info of the sensors purpose. So for temp/hum sensors it shows the temp/hum. For the SNZB-04 however no "Contact" parameter is shown:

19:24:30.958 CMD: zbinfo
19:24:30.971 MQT: tele/topic/499B/SENSOR = {"ZbInfo":{"TempHumBijkeuken":{"Device":"0x499B","Name":"TempHumBijkeuken","IEEEAddr":"0x881A14FFFEF48EDA","ModelId":"SNZB-02D","Manufacturer":"SONOFF","Endpoints":[1],"Config":["T01"],"Temperature":20.7,"Humidity":58.5,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709354392,"LastSeen":205,"LastSeenEpoch":1709403665,"LinkQuality":76}}}
19:24:30.980 MQT: tele/topic/D04A/SENSOR = {"ZbInfo":{"DeurBijkeuken":{"Device":"0xD04A","Name":"DeurBijkeuken","IEEEAddr":"0x00124B002929DA36","Endpoints":[1],"Config":["A01.2"],"ZoneType":21,"ZoneStatus":12544,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709402045,"LastSeen":1825,"LastSeenEpoch":1709402045,"LinkQuality":72}}}

Expect the "Contact" parameter to be shown for "DeurBijkeuken", equal to the current state. Just as there is a door open/close:

19:41:44.663 MQT: tele/topic/D04A/SENSOR = {"ZbReceived":{"DeurBijkeuken":{"Device":"0xD04A","Name":"DeurBijkeuken","0500?00":"000000010000","ZoneStatusChange":0,"ZoneStatusChangeZone":1,"Contact":0,"Endpoint":1,"LinkQuality":76}}}

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:
19:58:49.903 MQT: stat/topic/RESULT = {"WebLog":4}
19:58:50.774 CFG: Saved, Count 58, Bytes 4096
19:58:54.885 WIF: Checking connection...
19:58:59.744 CMD: zbinfo
19:58:59.746 SRC: WebConsole from 192.168.13.204
19:58:59.748 CMD: Grp 0, Cmd 'ZBINFO', Idx 1, Len 0, Pld -99, Data ''
19:58:59.760 MQT: tele/topic/499B/SENSOR = {"ZbInfo":{"TempHumBijkeuken":{"Device":"0x499B","Name":"TempHumBijkeuken","IEEEAddr":"0x881A14FFFEF48EDA","ModelId":"SNZB-02D","Manufacturer":"SONOFF","Endpoints":[1],"Config":["T01"],"Temperature":20.7,"Humidity":57.5,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709354392,"LastSeen":959,"LastSeenEpoch":1709404980,"LinkQuality":76}}}
19:58:59.769 MQT: tele/topic/D04A/SENSOR = {"ZbInfo":{"DeurBijkeuken":{"Device":"0xD04A","Name":"DeurBijkeuken","IEEEAddr":"0x00124B002929DA36","Endpoints":[1],"Config":["A01.2"],"ZoneType":21,"ZoneStatus":12544,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709402045,"LastSeen":1035,"LastSeenEpoch":1709404904,"LinkQuality":76}}}
19:58:59.778 MQT: tele/topic/4659/SENSOR = {"ZbInfo":{"DeurHal":{"Device":"0x4659","Name":"DeurHal","IEEEAddr":"0x00124B002928CC99","Endpoints":[1],"Config":["A01.2"],"ZoneType":21,"ZoneStatus":12800,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709398707,"LastSeen":4477,"LastSeenEpoch":1709401462,"LinkQuality":83}}}
19:58:59.787 MQT: tele/topic/1AA7/SENSOR = {"ZbInfo":{"DeurTerras":{"Device":"0x1AA7","Name":"DeurTerras","IEEEAddr":"0x00124B002928CE6B","Endpoints":[1],"Config":["A01.2"],"ZoneType":21,"ZoneStatus":12800,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709399770,"LastSeen":6169,"LastSeenEpoch":1709399770,"LinkQuality":7}}}
19:58:59.799 MQT: tele/topic/1CC2/SENSOR = {"ZbInfo":{"TempHumKelderkast":{"Device":"0x1CC2","Name":"TempHumKelderkast","IEEEAddr":"0x881A14FFFEF46BF7","ModelId":"SNZB-02D","Manufacturer":"SONOFF","Endpoints":[1],"Config":["T01"],"Temperature":13.9,"Humidity":74.1,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709386078,"LastSeen":2548,"LastSeenEpoch":1709403391,"LinkQuality":0}}}
19:58:59.811 MQT: tele/topic/49B6/SENSOR = {"ZbInfo":{"TempHumDouche":{"Device":"0x49B6","Name":"TempHumDouche","IEEEAddr":"0x881A14FFFEF46CD4","ModelId":"SNZB-02D","Manufacturer":"SONOFF","Endpoints":[1],"Config":["T01"],"Temperature":18.1,"Humidity":61.8,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709402504,"LastSeen":968,"LastSeenEpoch":1709404971,"LinkQuality":18}}}
19:58:59.820 MQT: tele/topic/5572/SENSOR = {"ZbInfo":{"TempHumSlaapkamer":{"Device":"0x5572","Name":"TempHumSlaapkamer","IEEEAddr":"0x28DBA7FFFE6C5390","ModelId":"SNZB-02D","Manufacturer":"SONOFF","Endpoints":[1],"Config":["T01"],"Temperature":17.5,"Humidity":67.3,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709402680,"LastSeen":668,"LastSeenEpoch":1709405271,"LinkQuality":21}}}
19:58:59.829 MQT: tele/topic/CA3C/SENSOR = {"ZbInfo":{"Ikea1":{"Device":"0xCA3C","Name":"Ikea1","IEEEAddr":"0xBC026EFFFE7C99E3","ModelId":"TRADFRI control outlet","Manufacturer":"IKEA of Sweden","Endpoints":[1,242],"Config":["O01"],"Power":1,"Reachable":true,"LastSeen":201292,"LastSeenEpoch":1709204647,"LinkQuality":142}}}
19:58:59.840 MQT: tele/topic/3676/SENSOR = {"ZbInfo":{"SmokeZitkamer":{"Device":"0x3676","Name":"SmokeZitkamer","IEEEAddr":"0xA4C13814BA7CD117","ModelId":"TS0205","Manufacturer":"_TZ3210_up3pngle","Endpoints":[1],"Config":["A01.1","I01"],"ZoneType":13,"ZoneStatus":0,"Occupancy":0,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709398322,"LastSeen":424,"LastSeenEpoch":1709405515,"LinkQuality":134}}}
19:58:59.851 MQT: tele/topic/20A8/SENSOR = {"ZbInfo":{"SmokeOverloop":{"Device":"0x20A8","Name":"SmokeOverloop","IEEEAddr":"0xA4C1381C5EC9F25F","ModelId":"TS0205","Manufacturer":"_TZ3210_up3pngle","Endpoints":[1],"Config":["A01.1","I01"],"ZoneType":13,"ZoneStatus":0,"Occupancy":0,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709399061,"LastSeen":3327,"LastSeenEpoch":1709402612,"LinkQuality":87}}}
19:58:59.856 MQT: stat/topic/RESULT = {"ZbInfo":"Done"}

TO REPRODUCE

Steps to reproduce the behavior:

19:24:30.958 CMD: zbinfo
19:24:30.971 MQT: tele/topic/499B/SENSOR = {"ZbInfo":{"TempHumBijkeuken":{"Device":"0x499B","Name":"TempHumBijkeuken","IEEEAddr":"0x881A14FFFEF48EDA","ModelId":"SNZB-02D","Manufacturer":"SONOFF","Endpoints":[1],"Config":["T01"],"Temperature":20.7,"Humidity":58.5,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709354392,"LastSeen":205,"LastSeenEpoch":1709403665,"LinkQuality":76}}}
19:24:30.980 MQT: tele/topic/D04A/SENSOR = {"ZbInfo":{"DeurBijkeuken":{"Device":"0xD04A","Name":"DeurBijkeuken","IEEEAddr":"0x00124B002929DA36","Endpoints":[1],"Config":["A01.2"],"ZoneType":21,"ZoneStatus":12544,"Reachable":true,"BatteryPercentage":100,"BatteryLastSeenEpoch":1709402045,"LastSeen":1825,"LastSeenEpoch":1709402045,"LinkQuality":72}}}

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

Expect the "Contact" parameter to be shown for "DeurBijkeuken", equal to the current state. Just as there is a door open/close: 19:41:44.663 MQT: tele/topic/D04A/SENSOR = {"ZbReceived":{"DeurBijkeuken":{"Device":"0xD04A","Name":"DeurBijkeuken","0500?00":"000000010000","ZoneStatusChange":0,"ZoneStatusChangeZone":1,"Contact":0,"Endpoint":1,"LinkQuality":76}}}

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

s-hadinger commented 8 months ago

Contact is never shown in ZbInfo, it is currently not part of information tracked and stored by Tasmota.