zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

OTA Update lead to weird firmware version (Danfoss 014G2461)

Open rubenkr opened this issue 4 years ago • 46 comments

What happened?

  • OTA update conducted for Danfoss Zigbee devices
  • Device updated to 01.18.0008 01.18 work with external sensors
  • Devices updated to AAAABBBBCCCCDDDD do not work with external sensor image

What did you expect to happen?

Update to firmware 01.18.0008 01.18 and or repair process

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.22.2-dev commit: 1a2943d

Adapter firmware version

20211217

Adapter

CC2652RB

Debug log

No response

rubenkr avatar Jan 27 '22 10:01 rubenkr

I had to repair my Danfoss Ally after updating to show the correct Firmware

lux73 avatar Jan 27 '22 13:01 lux73

@lux73 Michael how did you repair it? Could you please elaborate?

rubenkr avatar Jan 27 '22 14:01 rubenkr

i simply mean delete & re-pair with z2m - only after this my System shows the updatet Firmware. without re-pair it stucks with the old Firmware showing

lux73 avatar Jan 27 '22 19:01 lux73

It also shows a battery level > 100%. Here's an example of one of my TRVs:

{ "algorithm_scale_factor": 1, "battery": 127.5, "day_of_week": "wednesday", "external_measured_room_sensor": 2067, "heat_available": true, "heat_required": false, "keypad_lockout": "unlock", "linkquality": 127, "load_balancing_enable": false, "load_estimate": 746, "load_room_mean": -8000, "local_temperature": 25.94, "mounted_mode_active": false, "mounted_mode_control": false, "occupied_heating_setpoint": 18, "pi_heating_demand": 10, "programming_operation_mode": "setpoint", "radiator_covered": true, "running_state": "idle", "setpoint_change_source": "externally", "system_mode": "heat", "thermostat_vertical_orientation": false, "trigger_time": 660, "update": { "state": "idle" }, "update_available": false, "viewing_direction": false, "window_open_external": false, "window_open_internal": "closed" }

Running the latest 1.23

artemd93 avatar Feb 01 '22 20:02 artemd93

I ran into a similar (related?) issue when updating one of my thermostats. While still on 1.22.2 the update got stuck at 100% (#10666, fixed in 1.23.0). I now upgraded to 1.23.0 and manually cleaned the update state of bathroom_thermostat in state.json, however the firmware version and date do not fit to eachother. For comparison, livingroom_thermostat finished its OTA update to version 01.18 and also got its firmware date updated: image

I don't know if it makes sense but if the "reconfigure" action would also fetch the current firmware date and version to fix this then I wouldn't have to re-pair the device to get both fields updated on the z2m side. OTOH unless I see actual problems I will probably just leave things as they are now because the thermostat works great.

stefangehn avatar Feb 04 '22 16:02 stefangehn

I experienced the same behaviour with my Popp 701721, which is based on a Danfoss Ally.

Updated two Popp's, one showed the correct firmware, the other AAAABBBBCCCCDDDD and a battery status of 127.5%. Retried repairing a couple of times with the TRV in place without any luck. Then I removed the TRV, restarted Z2M and repaired nearer to a router. Coincidentally this worked, now it is showing the right firmware and battery status again.

Tenkc avatar Feb 10 '22 09:02 Tenkc

Same issue happened for me now that I upgraded all 4 thermostats I have.

image

The first two were updated with z2m 1.22.2, the last two with 1.23.0. So regardless of the z2m version it looks like fetching the new values for build date or version occasionally fails. I doubt this is of much use for fixing in z2m though.

A debug log of a working and a failing firmware update might have helped (I assume there'd be a difference between the two cases in the zigbee payloads logged) but I did not think about that before trying updating with 1.23.0.

stefangehn avatar Feb 11 '22 08:02 stefangehn

I also have to chime in. Z2M is on the latest version 1.23.0 since today. Yesterdays try had been on the version before. 1.22.2 I assume.

I started with the least important room yesterday. The toilet. The update rand for about an hour, but then stoped 13 minutes before finishing. I let it sit and hoped for a wonder. Then I didn't check, but had to power off the server. After restart it was in still updateting state, but no progress anymore. Then N/A and after resetting the TRV and trying to rebind it, it showed still as the old version 01.02. Checking for a newer version also showed there is no newer version. Something is flawed here... :)

Just trying a second TRV now.

ascheucher avatar Feb 16 '22 19:02 ascheucher

I have run into the very same problem. :-( I recently bought Allys for all my radiators, and a few of them updated alright. And then suddenly two got this "AAAABBBBCCCCDDDD" version. I think I might have updated z2m in Home Assistant between the point it was working and when it wasn't, indicating that this is indeed a recent regression. I am currently using version 1.24.0-1 of the hass add-on.

@lux73 Did you mean that you could fix the problem by factory reset and re-pair of the TRV?

magicus avatar Mar 03 '22 12:03 magicus

Correct, after Factory Reset & re-pair both of my Allys shown correct Firmware Version

lux73 avatar Mar 03 '22 13:03 lux73

Maybe noteworthy...

My whole repair and factory reset workflow for the Danfoss Ally TRVs. It's faster to note it down and look up then to forget and come up with it again.

  • copy the IEEE Address and the friendly name of the affected devices into a list
  • force remove the Danfoss Ally TRV
  • stop ZigBee2MQTT
  • Reset the affected TRVs (only half of them showed the wrong firmware versioen) with following steps:
    • hold button till battery is removed
    • remove battery
    • hold button
    • add battery
    • still hold button, till alle the symbols on the LCD flash and the motor takes away all the pressure from the valve. you can hear the water... then release
  • long press the button, till it starts to close the valve again
  • start ZigBee2MQTT again
  • short press to activate the display
  • short press again to initiate ZigBee pairing.
  • check device page and wait
  • rename the devices (check Update Home Assistant entity ID) to the former names from the list.

That are quite some steps to get in the correct order. Also to leave them as note to myself for the next time.

ascheucher avatar Mar 18 '22 12:03 ascheucher

@ascheucher And you managed to get a proper firmware with correctly reported version by doing this dance? I've tried doing parts of it (basically everything but restarting zigbee2mqtt), and it did not help; my updated Allys still show the AAAA... firmware version. (I've updated just a few; I dare not touch the rest.)

magicus avatar Mar 18 '22 14:03 magicus

@magicus Yes, this worked for all of them. I have got 10 of them. After the update half of them showed AAABBB... whatever. One showed a wrong older version (1.12 maybe?).

After going through this annoying dance, all of them showed the correct version. I also did a firmware update of my Sonoff ZigBee 3.0 dongle. Which wasn't easy first (wrong tutorials for Mac and Windows), but following a youtube video doing it on Linux worked like a charm. I had some paring issues with TuYa wall switches. Turned out it had been outdated CR2032 batteries... :D

ascheucher avatar Mar 18 '22 19:03 ascheucher

@ascheucher Thank you sir! With the restart of z2m, it worked for me as well. A relief. (But still an annoying bug; hope it gets fixed)

magicus avatar Mar 18 '22 21:03 magicus

I gave the same on my popp 701721

mpuff avatar Mar 19 '22 15:03 mpuff

@ascheucher Thanks for those steps, i was having the exact same problem and managed to have the firmware show up properly with your steps.

[edit, just for my memory, it seems to work best in my case with repeaters by enabling pairing in ZigBee2MQTT before enabling pairing on the Danfoss. So one additional step after "start ZigBee2MQTT again" of "enable ZigBee2MQTT permit join"]

surrealo avatar Apr 01 '22 18:04 surrealo

@Tenkc and @mpuff Would one of you be kind to send me a screenshot of the Popp TRV on the OTA screen? Basically like this: image

Currently trying to figure out if the Hive TRV (which has a custom firmware version) can be "force" flashed with the official Danfoss Ally ota file.

Am i right in thinking that you did an OTA to 1.18 by just pressing the button with no extra shenanigans?

(I am basically trying to understand if Popp describes itself as Popp but works on the Danfoss firmware from the factory, unlike Hive TRV)

Thank you both

robertalexa avatar Apr 05 '22 21:04 robertalexa

@robertalexa Here you go!

Screenshot 2022-04-06 at 09 39 11

Yes, I did an OTA to 1.18 just by pressing the button.

Tenkc avatar Apr 06 '22 07:04 Tenkc

Thanks a lot

robertalexa avatar Apr 06 '22 07:04 robertalexa

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

github-actions[bot] avatar May 18 '22 00:05 github-actions[bot]