zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Firmware upgrade issue sonoff SNZB-02D

Open h3llrais3r opened this issue 6 months ago • 8 comments

What happened?

I tried a firmware upgrade of my sonoff SNZB-02D devices from 1.0.9 to the latest 2.0.3 version. It seems the firmware has finished (but I had to do it a couple of times, as it stopped in between), but it's still mentioning the old firmware version. I tried already a lot of things like remove/repair without any success. Next to that the firmware update check is no longer working, it always gives the following error: z2m: Failed to check if OTA update available for 'Smart sensor bathroom' (Device didn't respond to OTA request)

Image

I tried waking the device, close to the coordinator, nothing helps. My other devices that haven't been upgraded yet, do respond when waking up close to the coordinator on the update check.

I think the upgrade might have partially been done... not sure how to check. It also seems that after that (partial) upgrade, there are a few new functionalities available in the payload (temperature_calibration, humidity_calibration,...) However, changing any of these values, results in another error: z2m: Publish 'set' 'temperature_calibration' to 'Smart sensor bathroom' failed: 'Error: ZCL command 0xf4b3b1fffe9910e9/1 customSonoffSnzb02d.write({"temperatureCalibration":0}, {"timeout":10000,"disableResponse":false,"disableRecovery":false,"disableDefaultResponse":true,"direction":0,"reservedBits":0,"writeUndiv":false}) failed (Status 'UNSUPPORTED_ATTRIBUTE')' Doing the same on device that came default with the the firmware 2.0.3 doesn't give any error.

Any suggestion on how to fix this?

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

2.10.0-1

Adapter firmware version

20230507

Adapter

Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001

Setup

home assistant addon

Device database.db entry

"id":64,"type":"EndDevice","ieeeAddr":"0xf4b3b1fffe9910e9","nwkAddr":58497,"manufId":4742,"manufName":"SONOFF","powerSource":"Battery","modelId":"SNZB-02D","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":770,"inClusterList":[0,1,3,32,1026,1029,64599,64529],"outClusterList":[25],"clusters":{"genBasic":{"attributes":{"modelId":"SNZB-02D","manufacturerName":"SONOFF","powerSource":0,"zclVersion":8,"appVersion":0,"hwVersion":0,"dateCode":"20230105","swBuildId":"1.0.9"}},"genPollCtrl":{"attributes":{"checkinInterval":14400}},"genPowerCfg":{"attributes":{"batteryPercentageRemaining":200}},"msTemperatureMeasurement":{"attributes":{"measuredValue":2190}},"msRelativeHumidity":{"attributes":{"measuredValue":5500}},"customSonoffSnzb02d":{"attributes":{"comfortTemperatureMin":1900,"comfortTemperatureMax":2700,"comfortHumidityMin":4000,"comfortHumidityMax":6000,"temperatureUnits":0}}},"binds":[{"cluster":32,"type":"endpoint","deviceIeeeAddress":"0x00124b00257e08b3","endpointID":1},{"cluster":1,"type":"endpoint","deviceIeeeAddress":"0x00124b00257e08b3","endpointID":1},{"cluster":1026,"type":"endpoint","deviceIeeeAddress":"0x00124b00257e08b3","endpointID":1},{"cluster":1029,"type":"endpoint","deviceIeeeAddress":"0x00124b00257e08b3","endpointID":1}],"configuredReportings":[{"cluster":1,"attrId":33,"minRepIntval":3600,"maxRepIntval":65000,"repChange":10},{"cluster":1026,"attrId":0,"minRepIntval":10,"maxRepIntval":3600,"repChange":100},{"cluster":1029,"attrId":0,"minRepIntval":10,"maxRepIntval":3600,"repChange":100}],"meta":{}}},"appVersion":0,"hwVersion":0,"dateCode":"20230105","swBuildId":"1.0.9","zclVersion":8,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":"0.0.0"},"lastSeen":1778075621156,"checkinInterval":3600}

Debug log

No response

Notes

No response

h3llrais3r avatar May 06 '26 14:05 h3llrais3r

Hello @cubez2mdeveloper are there known issues with this version?

andrei-lazarov avatar May 07 '26 23:05 andrei-lazarov

I ran into the same issue when I tried updating 2.0.3 a year ago or so. Didn't follow up on it, yet.

I think all my devices started at firmware ID 1.0.9 20230105 and version App: 0.0 build 0 Stack: 1.0 build 9. 3 of 5 device updated properly to 2.3.0 20250116 and App: 0.0 build 0 Stack: 2.3 build 0. 1 got stuck in a mixture of ID 1.0.9 20230105 and version App: 0.0 build 0 Stack: 2.3 build 0, not offering to update anymore. And 1 got stuck on both, old ID and version, offering to update. But updates fail as you described.

Image

mkuhring avatar May 09 '26 12:05 mkuhring

Hi @h3llrais3r,

Thanks for reporting this issue and for the detailed information.

We have received this report about SNZB-02D. We will arrange an investigation on our side and try to reproduce this behavior with the same firmware upgrade path. If there are any findings or updates, we will follow up here.

Sorry for the inconvenience, and thanks again for your feedback.

CubeZ2mDeveloper avatar May 14 '26 10:05 CubeZ2mDeveloper

I have an issue that happened just recently. I forgot when i upgraded but it's on 2.3.0 now.

The issue happening now is the temperature updated to z2m are delayed. On physical device, temp is already one degree lower, but in z2m it still hasn't updated

kingp0dd avatar Jul 05 '26 03:07 kingp0dd

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Sep 04 '26 00:09 github-actions[bot]

Not stale

h3llrais3r avatar Sep 04 '26 06:09 h3llrais3r

Ongoing issue

infabo avatar Oct 27 '26 12:10 infabo

image

Push this before FW install

image

FW install - But! Push Press once every minute...

IAMRICHUNICORN avatar Nov 21 '26 20:11 IAMRICHUNICORN