Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sensors stuck #71

Open
Operrr opened this issue Nov 20, 2023 · 17 comments
Open

Sensors stuck #71

Operrr opened this issue Nov 20, 2023 · 17 comments

Comments

@Operrr
Copy link

Operrr commented Nov 20, 2023

I have LYWSD03MMC sensors, I flashed 5 of them with firmware 1.0.6 and after some time all the sensors freeze, stop sending readings and the values ​​on the display do not change. After a power reset they work normally for a while and freeze again. On the stock BT firmware the sensors worked flawlessly

@drwalr
Copy link

drwalr commented Nov 20, 2023

also have this problem,
Manual reading in Z2M gives an error in the 'MAC transaction expired' logs

image

The connection to the coordinator is good.

@oosinnyi
Copy link

Same problem on latest firmware.

@wimpie007
Copy link

Same issues here. OTA from 1.0.5 to 1.0.6 was successfull, but after a few hours, reporting stopped. (and display freezed)
Pulling battery kicks it on again.

@pvvx
Copy link

pvvx commented Nov 25, 2023

This is a particular error when switching the operation of the end device through a router.
For such cases, it is advisable to support a “Poll Management Cluster” on the end device and router.

https://community.silabs.com/s/article/the-poll-control-cluster-a-reliable-way-for-sed-to-receive-asynchronous-transmi?language=en_US

@wimpie007
Copy link

This is the only device i have (and i have a LOT) that shows this behavior.
I didnt configure a "Poll Management Cluster” for neither of the devices....

@Fienberber
Copy link

Fienberber commented Dec 3, 2023

I have the exact same issue on all 4 sensors. Power reset fix the issue for some time.
Those two issues don't seem to occur at the same time tho.

I still have HA updates while the screen reports old values.
I don't see how to configure "Poll Management Cluster” using ZHA.

@pvvx
Copy link

pvvx commented Dec 3, 2023

The "Poll Management Cluster” does not need to be configured. An upstream device—a router or coordinator—works with it.

See 3.16 "Poll Control" in "ZigBee Cluster Library Specification"

@enryIT
Copy link

enryIT commented Dec 11, 2023

The "Poll Management Cluster” does not need to be configured. An upstream device—a router or coordinator—works with it.

See 3.16 "Poll Control" in "ZigBee Cluster Library Specification"

So the problem is in both ZHA and zigbee2mqtt or in the zigbee coordinator itself?

@pvvx
Copy link

pvvx commented Dec 11, 2023

So the problem is in both ZHA and zigbee2mqtt or in the zigbee coordinator itself?

I have not observed any of the problems described here on ZHA since the first versions of the firmware.
It is not even possible to reproduce the problems described.

Users with sensors falling off do not describe the full Zigbee network configuration and other technical details. And they hide the thermometer versions - B1.4...B2.0?

It is only possible to assume that the problem lies in the coordinator's firmware.

@GravitySandwichh
Copy link

Same issue happening here. Sonoff ZBDongle-P on Zigbee2MQTT. They constantly freeze or even drop off the network. Other devices are completely fine and stay working properly. Not usable in this state :(

Everything was fine on 1.0.5 but 1.0.6 seems to have broken it. LCD on the Xiaomi also freezes so it's definitely client side and not coordinator side.

@jul1an353
Copy link

I have the same problem with seven sensors I have just bought, so probably the latest hardware revision. Zigbee2mqtt with SONOFF Zigbee 3.0 USB Dongle Plus coordinator. all sensors freeze after about a day in use.
I have tried to downgrade to 1.0.5 without success.

Error 2023-12-13 15:24:31 Update of 'wohnen sensor2' failed (Image type mismatch)

my_index.json:
[
{
"manufacturerCode": 4417,
"imageType": 522,
"url": "1141-0203-10053001-z03mmc.zigbee",
"force": true
}
]

I would appreciate any help with downgrading.

@pvvx
Copy link

pvvx commented Dec 13, 2023

help with downgrading.

  1. Restore to BLE, use the Zigbee OTA file with https://github.com/pvvx/ATC_MiThermometer/raw/master/zigbee_ota/1141-0203-99993001-ATC_v46.zigbee
  2. Use TelinkMiFlasher.html by pasting the link "https://github.com/devbis/z03mmc/releases/download/1.0.5/1141-0203-10053001-z03mmc.zigbee" into the download option.

@jul1an353
Copy link

no luck, same error: Error 2023-12-13 16:25:59Update of 'schlafen sensor' failed (Image type mismatch)

Debug 2023-12-13 16:25:59Got OTA request '{"fieldControl":0,"manufacturerCode":4417,"imageType":522,"fileVersion":17903617}'
Debug 2023-12-13 16:25:59ZigbeeOTA: downloaded main index
Debug 2023-12-13 16:25:59ZigbeeOTA: Loading override index /app/data/my_index.json
Debug 2023-12-13 16:25:59ZigbeeOTA: getting local firmware file /app/data/1141-0203-99993001-ATC_v46.zigbee
Debug 2023-12-13 16:25:59getNewImage for '0xa4c1385f60f296ad', meta {"fileVersion":2576953345,"url":"1141-0203-99993001-ATC_v46.zigbee","force":true}
Debug 2023-12-13 16:25:59ZigbeeOTA: getting local firmware file /app/data/1141-0203-99993001-ATC_v46.zigbee
Debug 2023-12-13 16:25:59getNewImage for '0xa4c1385f60f296ad', image header {"otaUpgradeFileIdentifier":{"type":"Buffer","data":[30,241,238,11]},"otaHeaderVersion":256,"otaHeaderLength":56,"otaHeaderFieldControl":0,"manufacturerCode":4417,"imageType":515,"fileVersion":2576953345,"zigbeeStackVersion":2,"otaHeaderString":"Telink OTA BLE device\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","totalImageSize":82674}
Debug 2023-12-13 16:25:59Update of 'schlafen sensor' failed (AssertionError [ERR_ASSERTION]: Image type mismatch)
Info 2023-12-13 16:25:59MQTT publish: topic 'zigbee2mqtt/schlafen sensor', payload '{"battery":23,"humidity":69.5,"last_seen":"2023-12-13T15:25:59.639Z","linkquality":98,"temperature":18.7,"temperature_display_mode":null,"update":{"installed_version":17903617,"latest_version":2576953345,"state":"available"},"update_available":null,"voltage":3100}'
Info 2023-12-13 16:25:59MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/update', payload '{"data":{"id":"schlafen sensor"},"error":"Update of 'schlafen sensor' failed (Image type mismatch)","status":"error","transaction":"otbeu-5"}'
Error 2023-12-13 16:25:59Update of 'schlafen sensor' failed (Image type mismatch)

is the imageType maybe tot correct?

my_index.json:
[
{
"manufacturerCode": 4417,
"imageType": 522,
"url": "1141-0203-99993001-ATC_v46.zigbee",
"force": true
}
]

@pvvx
Copy link

pvvx commented Dec 13, 2023

https://github.com/pvvx/ATC_MiThermometer/raw/master/zigbee_ota/1141-0203-99993001-ATC_v46.zigbee

Internal Headers:
Zigbee OTA Info: ManCode: 1141, ImageType: 0203, FwVer: 99993001 - APP Release: 9.9 Build: 9.9, Stack Version: 3.0 Release: 0.1

my_index.json:
[
{
"manufacturerCode": 4417,
"imageType": 522,
"url": "1141-0203-99993001-ATC_v46.zigbee",
"force": true
}
]

Incorrect. -> "imageType": 515,

Debug 2023-12-13 16:25:59Got OTA request '{"fieldControl":0,"manufacturerCode":4417,"imageType":522,"fileVersion":17903617}'

"manufacturerCode": 4417 -> 0x1141,
"imageType": 522 -> 0x020A,
"fileVersion": 17903617 -> 0x01113001

https://github.com/pvvx/ZigbeeTLc#zigbee-ota


You can determine what firmware you have by the version number:

image

0x0203 - firmware from devbis is used, version number from 1.0.0.1 to 1.0.0.6.
0x020A - my firmware is used, version number from 0.1.0.1 to 0.1.1.6.

The firmware that works simultaneously in Zigbee and BLE is version 0.2.0.1 onwards.

The version number listed here is incorrect. Missing "0":
image


If you load all the files from https://github.com/pvvx/ATC_MiThermometer/tree/master/zigbee_ota into ZHA, then all types of known thermometers will be updated in the BLE version.
Use "raw" download from github!

@jul1an353
Copy link

jul1an353 commented Dec 14, 2023

Edit: After flashing over SWS-UART with TLSR825xComFlasher.py first ATC_ota_40000.bin, 2. z03mmc.bin (v1.0.5) and then updating via Z2M to v1.06 all my sensors working perfect. thanks a lot.

@WickedDurkie
Copy link

This is still an issue on the latest firmware (1.10).

@Fr3di
Copy link

Fr3di commented Feb 14, 2024

Have the same issue after updating to v1.10 but only on one device :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests