-
Notifications
You must be signed in to change notification settings - Fork 23
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
OTA update in ZHA #7
Comments
Tried to follow restoring BLE but stumbled on these issues:
HA:
Any advice ? |
Download the file correctly. |
D'oh ! Embarrasing mistake on my side. Thank you, succesfully reflashed |
Do you have such an walkthrough for zigbee2mqtt? |
https://www.zigbee2mqtt.io/guide/usage/ota_updates.html#local-ota-index-and-firmware-files |
I followed the procedure but still not able to do the OTA update back to BLE. Z2M keeps telling me
|
Hello, If you have HomeAssistant OS, the configuration file must be like this:
|
This solved my problem and this trick is not written anywhere. Thanks so much! |
Unfortunately, OTA in zigbee2mqtt doesn't work for me either (HA OS). I've followed the manual, created override OTA index, tried many things, but it just doesn't work. If anyone has any other experience, please share. Only error I get is 'Failed to check if update available for 'Termometr 2' (No image available for imageType '522')' - it seems like z2m is just ignoring my local OTA index. |
Ok I've managed to make a progress - you don't add 'zigbee_ota_override_index_location' to the configuration.yaml file manually, but go to 'Settings' -> 'OTA Updates' -> fill in the 'OTA index override file name' field. And suddenly z2m sees it, even though the configuration.yaml looks the same as if I'd edited it manually. |
@rwronski try this guide. Personally I didn't validate it |
@pvvx where is the BLE .zigbee file for tuya TS0201? |
Hi, I have LYWSD03MMC with devbis fw 1.1.0 and I would like to migrate to ZigbeTLc fw or back to BT. I followed guides for Z2M and ZHA but without success. For example ZHA.. I added following to configuration.yaml:
the folder /root/config/zigpy_ota contains:
I called ZHA Toolkit: Trigger Device's Firmware Update service. The log contains:
there is one interesting message... I do not know what it means or if it is related to my issue...
Core 2024.2.2 It looks like the local OTA files are ignored... Can you see anything wrong? Any ideas what to try next? |
zigpy has disabled local providers because many people are breaking their devices with wrong OTA updates. The commit that does that is here: You can still do OTA updates using ZHA with the following yaml configuration:
|
After flashing the Zigbee firmware, is there a way to tell exactly which image was installed? I am unsure whether the image from pvvx or devbis were installed. HAOS |
Zigbee->BLE Files
Have you tried using "reconfigure"? Devices sometimes fall off if the coordinator is turned off for a long time (days) and the devices work through some Tuya Zigbee routers. |
I had that setup. But you might want to modify your text above that you copied here. The directory that is referenced is "zigpy_ota", but in your example config you have "zigbee_ota". I suppose it doesn't matter as long as config and actual directory name are the same. ;-) |
Just got it working thanks to this and this. My working code now: zha:
zigpy_config:
ota:
allow_advanced_ota_dir:
I understand I can *destroy* my devices by enabling OTA
updates from files. Some OTA updates can be mistakenly applied to the
wrong device, breaking it. I am consciously using this at my own risk.
advanced_ota_dir: /config/zigpy_ota |
Newer working config zha:
zigpy_config:
ota:
extra_providers:
- type: advanced
warning: I understand I can *destroy* my devices by enabling OTA updates from
files. Some OTA updates can be mistakenly applied to the wrong
device, breaking it. I am consciously using this at my own risk.
path: /config/zigpy_ota |
Even simpler zha:
zigpy_config:
ota:
extra_providers:
- type: z2m
url: https://raw.githubusercontent.com/pvvx/ZigbeeTLc/refs/heads/master/bin/index.json |
Dear all I tried a merge of the last 2 options but without success.
After that I get this error in ZHA:
|
If you're using Zigbee2MQTT and want to update your devices from devbis firmware to ZigbeeTLc using Over-The-Air (OTA) updates, follow these simple steps. Prerequisites
Step-by-Step Guide1. Download the Firmware File
2. Place the Firmware File in the Zigbee2MQTT Directory
3. Create a Custom OTA Index File
4. Configure Zigbee2Mqtt to Use the Custom OTA Index
5. Perform the OTA Update
6. Clean Up After the Update
Important Notes
|
How can I reflash the OTA image or downgrade it? I've managed to upgrade the firmware of a TS0201-TZ3000 to '0x01233001' (reported in ZHA), but the temperature reading reports -327.7 degrees C and the humidity is 655.4%. So something has gone wrong somewhere... |
This should be in main readme! Thank you! |
[Edit: Solved.] I'm trying this method to update from devbis firmware to ZigbeeTLc and I get this message:
Am I missing something?
I'm trying to update with db15-0203-79993001-Z03MMC_v0122.zigbee End of ota:
zigbee_ota_override_index_location: my_index.json
[
{
"url": "db15-0203-79993001-Z03MMC_v0122.zigbee",
"force": true
}
] Edit: A reminder to all to actually download the RAW firmware links, not the links that connect straight to github pages!(My update has now started... but it will take 23 minutes...) |
OTA update in ZHA.
The "configuration.yaml" file must have a directory assigned to the OTA files and the "ZHA Toolkit" installed.
For example, the directory name will be: “/zigbee_ota”
Place the new FW version files "*.zigbee" or "index.json" from bin into this directory ("./zigbee_ota").
Restart ZHA (preferably the entire Home Assistant).
Update in new versions of Home Assistant:
Update in ZHA Toolkit:
Doesn't work in the new version of ZHA!
https://github.com/mdeweerd/zha-toolkit#ota_notify---downloadtrigger-device-fw-update
Go to “Developer tools” -> “SERVICES” and select “ZHA Toolkit: Trigger Device's Firmware Update”.
Select “Device Reference” and click “CALL SERVICE”.
After some time, 15..20 minutes, the firmware number will change:
To restore to BLE, use the Zigbee OTA file with the same number device from: https://github.com/pvvx/ATC_MiThermometer/tree/master/zigbee_ota
After running Zigbee OTA, be sure to delete this file or files from the update directories for Zigbee OTA and completely restart z2m/zha. Otherwise, with the new Zigbee firmware, this update in BLE will work again.
The text was updated successfully, but these errors were encountered: