How to update FW using ZHA, for (shitty) device TZ3000_xkap8wtb

Im using ZHA , and I am frustrated on one simple point; Updates of firmware.
HOW do I go about to update the FW, IF I find any?

I have a TZ3000_xkap8wtb, in wall switch with power metering.
Four out of five of these devices work “ok”, and I would never recommend them to anyone.
But still, here I am.

The TZ3000_xkap8wtb is identified as LIGHT domain, though it is SWITCH and it powers of (seemingly due to some sort of voltage fail safe, that just trips the device offline).
Annoying as häll.

I agree, but problem is that more Zigbee device manufacturers need to have OTA provider servers and provide OTA firmware images so you can really only blame the manufacturers:

https://www.home-assistant.io/integrations/zha#ota-firmware-updates

The best you can probably do is push manufacturers to join Home Assistant’s partner program as the framework to add more OTA firmware providers for updates via ZHA is already available:

https://www.home-assistant.io/blog/2022/07/12/partner-program/

https://partner.home-assistant.io/

Today most devices do not have/get OTA firmware updates, especially not common for Tuya devices. For an unofficial collection of Zigbee OTA images see:

https://github.com/Koenkk/zigbee-OTA

For now you can use ZHA Toolkit to apply any OTA firmware images that you find (if you find any):

https://github.com/mdeweerd/zha-toolkit#ota_notify

Suggest report to Issues · zigpy/zha-device-handlers · GitHub (reason why explain in ZHA docs here → https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling).

In this thread here below, user Gerd2809 talks about being able to edit files, to force a fw update.
Do you know if this is doable on HA with ZHA also?

Yes but it is not as simple, see the very first link I posted which is to the section about it in ZHA docs as that mentions manual updates, but again as noted it is then a little bit easier to install and use ZHA Toolkit for images that ZHA does not already have an OTA provider for.

I have Zigbbe Toolkit installed in my setup.
What I am trying to find is how to force an fw update on device A, design for device B.
The github thread seems to imply that this resolved the users issue with random turn offs…

Sorry, can not help with that. Sounds like a bad idea as can brick the device. Maybe try asking zigpy developers-> zigpy/zigpy · Discussions · GitHub

Hi, I managed to make a custom quirk for the TZ3000_xkap8wtb that scales both the current and summation readout, and it changes the device from a light into a switch.

See: ZHAQuirk for the tuya switch with power monitoring _TZ3000_xkap8wtb model TS000F. · GitHub

Notes:

  • The power factor sensor doesn’t have a value, so just disable that one
  • low currents below 0.5A seem very inaccurate
1 Like