Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.79k stars 1.64k forks source link

TuYa TS011F_plug_1: OTA Update unavailable #20765

Closed ConfigMgrPro closed 8 months ago

ConfigMgrPro commented 8 months ago

What happened?

I have 6 pcs TS011F_plug all having the same issue (sold by the same seller on AliExpress).

The device cannot be updated, as it has no OTA cluster available.

Info 2024-01-13 13:12:24Checking if update available for 'Powermonitor Quooker cube'
Info 2024-01-13 13:12:24MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/check', payload '{"data":{"id":"Powermonitor Quooker cube"},"error":"Failed to check if update available for 'Powermonitor Quooker cube' (Failed to find endpoint which support OTA cluster)","status":"error","transaction":"ok9ma-6"}'
Error 2024-01-13 13:12:24Failed to check if update available for 'Powermonitor Quooker cube' (Failed to find endpoint which support OTA cluster)

On ZHA i also had no OTA cluster visible for these devices.

What did you expect to happen?

I want to be able to update the devices, as i having troubles that they shut down randomly.

How to reproduce it (minimal and precise)

Click on the OTA update button.

Zigbee2MQTT version

1.35.1

Adapter firmware version

6.7.8.0 build 373

Adapter

Used both the Sonoff zigbee dongle and Sonoff ZHABridge

Setup

Rpi4

Debug log

No response

Koenkk commented 8 months ago

Fixed! Note that even with this it might complain about not having a fw for this device. In that case you need to follow this

Changes will be available in the dev branch tomorrow.

ConfigMgrPro commented 8 months ago

Unfortunately still same issue, no OTA cluster for Tuya device. (Z2M 1.35.1-dev commit: 2bd7df8)

Koenkk commented 8 months ago

I did not integrate it yet, will be available in a few hours from now.

ConfigMgrPro commented 7 months ago

I had some issues updating Z2M, it's now finally updated, so i was able to test.

The original Error message is gone, but i have a New one.

Failed to check if update available for 'Powerplug xxx' (OTA: Device didn't respond to OTA request)

I already reconfigured the device.

ConfigMgrPro commented 7 months ago

MQTT publish: topic 'zigbee2mqtt/bridge/response/device/ota_update/check', payload '{"data":{"id":"Powerplug xxx"},"error":"Failed to check if update available for 'Powerplug xx' (OTA: Device didn't respond to OTA request)","status":"error","transaction":"3d3hq-2"}'

Also i see an software version of -1 in the log

MQTT publish: topic 'zigbee2mqtt/Powerplug xxx', payload '{"child_lock":"UNLOCK","current":0,"energy":1.6,"indicator_mode":"off/on","linkquality":91,"power":0,"power_outage_memory":"on","state":"OFF","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":236}'

Koenkk commented 7 months ago

@ConfigMgrPro can you check if OTA is supported with the original hub? I expect that your device may not support OTA at all.

ConfigMgrPro commented 7 months ago

Hi @Koenkk,

I don't have an original hub. Can i just buy any tuya zigbee hub? Thanks!

If OTA is not supported, can i still update using the manual flash method as mentioned here?

Koenkk commented 7 months ago

I don't have an original hub. Can i just buy any tuya zigbee hub? Thanks!

yes

If OTA is not supported, can i still update using the manual flash method as mentioned here?

No, that's for flashing the coordinator fw (not the TuYa device)

R-ens commented 3 months ago

Hi @ConfigMgrPro,

Did you try OTA from the original hub? I wonder if have new insights. I bought the same plugs from "Factory Direct Collected Store" on AliExpress.

Zigbee Model: TS011F
Zigbee Manufacturer: _TZ3000_okaz9tjs
Firmware version: 0122052017

I've got the same error as well: Error 2024-06-11 15:43:19 Failed to check if update available for 'XXX' (OTA: Device didn't respond to OTA request)