Hi @chris,
so I guess it it is not updating automatically at least I did not recognize something here. (And Maybe we should switch this off by default and ask the user in case he wants to update.
Okay and now my personal issues:
The question is simple to avoid you need to read the next:
How do i know which file belongs to which device?
I can see this files in the firmware folder:
frsc@raspi://opt/openhab3/data/openhab/userdata/zigbee/firmware $ find . -type f
./raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Aurora/MainsPowerOutlet_JN5169_PCB_ARC_OTA_0x1409_v22.ota
./github.com/Koenkk/zigbee-OTA/raw/master/images/Hue/100B-010C-01001A02-ConfLight-Lamps_0012.zigbee
And i see this:
Here it is what i can see in the console:
openhab> zigbee otaupgrade
Address Ieee Address State
5869/1 A4C138F96D1BA59C OTA_UNINITIALISED
2BA0/2 001788010969320F OTA_UNINITIALISED
9CC2/11 00178801042F514E OTA_UNINITIALISED
And I can do things like this in the console:
zigbee otaupgrade start 57386/1 zigbee/firmware/github.com/Koenkk/zigbee-OTA/raw/master/images/HUE/XYZ.ota
How do i know which file belongs to which device?
And then my next question:
I’ve seen there is a newer file available, is the OTA Update server looking to an online file or is there a offline copy if the index.json file?
{
"fileName": "100B-010C-01001A02-ConfLight-Lamps_0012.zigbee",
"fileVersion": 16783874,
"fileSize": 267452,
"url": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Hue/100B-010C-01001A02-ConfLight-Lamps_0012.zigbee",
"imageType": 268,
"manufacturerCode": 4107,
"sha512": "c4591fe155bef8500779c36c7792f3960c4f83dde9dd47aa367113229c5bd73161f14cc92e6d6a0960e807c54626ce2ab0ce0d18c76d0206770dcda3a4776862",
"otaHeaderString": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
"originalUrl": "https://otau.meethue.com/storage/ZGB_100B_010C/2ef158a5-ffb4-43ac-9d59-3cb71078f6f7/100B-010C-01001A02-ConfLight-Lamps_0012.zigbee",
"maxFileVersion": 16783873
},
{
"fileName": "100B-010C-01002800-ConfLight-Lamps_0012.zigbee",
"fileVersion": 16787456,
"fileSize": 266684,
"url": "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Hue/100B-010C-01002800-ConfLight-Lamps_0012.zigbee",
"imageType": 268,
"manufacturerCode": 4107,
"sha512": "30c754504fed42ce12b4243fbf70a8207675f02cba1efbe2e454270049b472e400578c316602978deadb39166b196cb21aaf0f5cbb527fd2491fd78d4a14b620",
"otaHeaderString": "\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
"originalUrl": "https://otau.meethue.com/storage/ZGB_100B_010C/9ee7aed8-faed-43eb-b7f7-712a5b578dba/100B-010C-01002800-ConfLight-Lamps_0012.zigbee",
"minFileVersion": 16783874
},
and finally i tried to update a hue panel with this:
Usage: openhab:zigbee - otaupgrade [STATE | FILE | START | COMPLETE | CANCEL] [ENDPOINT] [FILENAME] - Provides detailed information about device over the air upgrade server status.
openhab> zigbee otaupgrade start 53068/11 frsc/100B-010E-01002600-ConfLight-ModuLum_0012.zigbee
OTA File "frsc/100B-010E-01002600-ConfLight-ModuLum_0012.zigbee" set for node CF4C/11
OTA File: ZigBeeOtaFile [headerVersion=256, headerLength=56, manufacturerCode=4107, imageType=010E, fileVersion=01002600, stackVersion=ZIGBEE_PRO, headerString=, imageSize=269002]
If i do then check fi completion i get the Error:
Exception during command execution (IllegalArgumentException): Node 53068 does not implement the OTA Upgrade server
openhab> zigbee otaupgrade state 53068
Error: Exception during command execution (IllegalArgumentException): Node 53068 does not implement the OTA Upgrade server
openhab> zigbee otaupgrade COMPLETE 53068/11
OTA Upgrade completion on endpoint CF4C/11 returned false
Is it upgradeing or not?
openhab> zigbee otaupgrade
Address Ieee Address State
5869/1 A4C138F96D1BA59C OTA_UNINITIALISED
2BA0/2 001788010969320F OTA_UNINITIALISED
9CC2/11 00178801042F514E OTA_UNINITIALISED
I’ve also tried the firmware command as the documentation says
UI doesn’t support the firmware management system, so this must be performed using the console
but did not succeed
openhab> firmware list zigbee:device:62ec522f14:0017880103342a12
No firmwares found for thing with UID zigbee:device:62ec522f14:0017880103342a12
With that said thank you Chris for your efforts and fixes.
/Franz