Comments (30)
First OTA update with zigbee-herdsman/zigbee2mqtt is a fact!
Before: "dateCode":"20170315","swBuildId":"1.3.002"
After: "dateCode":"20180410","swBuildId":"1.3.009"
from zigbee-herdsman.
@twsI good idea, will let you know here once its available.
from zigbee-herdsman.
@kiall then we should make the version info ourselves
from zigbee-herdsman.
Just of minor interest, ubisys allows us to request the OTA firmware once we have this working!
https://www.ubisys.de/wp-content/uploads/ubisys-s1-technical-reference.pdf
7.7.4.Over-the-Air Upgrade Cluster(Client)
The image type for S1 is 0x7B02, for S1-R it is 0x7B05. You may request the latest firmware in ZigBee OTA image format to upgrade devices in the field using your own OTA server and back-end. If you operate the power switch S1together with the ZigBee/Ethernet Gateway ubisys G1, the latest firmware for S1 and S1-R will always be available automatically and you do not need to request it explicitly.
Looks like they just post them for us!
https://www.ubisys.de/en/support/firmware/
from zigbee-herdsman.
@Koenkk if you'd start with the general architecture, I could implement the code for certain vendors. Got Xiaomi, OSRAM, Ikea for testing as well
from zigbee-herdsman.
I went looking for the OTA firmwares for Salus devices this evening and after sniffing the traffic from their iOS app, I found them!
https://eu.salusconnect.io/demo/default/status/firmware?timestamp=0.
Unfortunately, the newest firmware for the SP600 plug I've got is pretty old:
→ strings SAL2PU1_02015120_OTA.ota | grep -E '20\d\d'
SAL2PU1_02015120_OTA ota image f~`
20170220
from zigbee-herdsman.
Ledvance/Osram Smart+ firmware can be found here: https://update.ledvance.com/firmware-overview?submit=all
Maybe this also helps https://phoscon.de/en/support#ota-update-osram-devices
from zigbee-herdsman.
There is no need for downloading stuff manually, zigbee2mqtt grabs the latest from the ikea servers.
from zigbee-herdsman.
Would be great if somebody could help with this!
from zigbee-herdsman.
I can help test it with Ikea Tradfri devices
from zigbee-herdsman.
I think you need to add the genOta
cluster similar like https://github.com/Koenkk/zigbee-herdsman/blob/master/src/adapter/z-stack/adapter/startZnp.ts#L48
Afterwards you can use https://github.com/Koenkk/zigbee-herdsman/blob/master/src/controller/model/device.ts#L208 to get the coordinator and first endpoint of it to start sending requests.
zigbee-herdsman has no replacement for zapp (which zigbee-shepherd had)
from zigbee-herdsman.
Change https://github.com/Koenkk/zigbee-herdsman/blob/master/src/controller/controller.ts#L424
to
if (type && data && cluster !== 'genOta') {
from zigbee-herdsman.
What's the status of your OTA branch @tb-killa? The Deconz folks have OTA working for a variety of devices.
from zigbee-herdsman.
If you need a tester, just let me know.
from zigbee-herdsman.
I also offer myself as a tester.
I have a CC2351 stick and some ZigBee devices from Ledvance/Osram, Xiaomi, Aqara etc.
from zigbee-herdsman.
I too can test if needed, CC1352P-2 and Tradfri, hue, Xiaomi, gledopto here
from zigbee-herdsman.
Ledvance/Osram has a REST API to download firmware info and firmware files: https://portal.update.ledvance.com/docs/services/firmware-rest-api/operations/5d8e482edb442c3151c64fae
from zigbee-herdsman.
Is there any way I can help or contribute?
from zigbee-herdsman.
Would also love to see this feature and glad to help testing (Bitron, OSRAM/Ledvance, Xiaomi/Aqara/Mija, Konke, Philips, Heimann, Ikea, ...) 🙈
from zigbee-herdsman.
OTA getting more important:
Signify confirmed the existence of the vulnerability in their product, and issued a patched firmware version (Firmware 1935144040) which is now available on their site. We recommend users to make sure that their product received the automatic update of this firmware version.
from zigbee-herdsman.
Is it a good idea to collect and upload (the most recent) firmware images somewhere? Maybe even collecting (links to) them on the appropriate wiki device pages, perhaps with a hint like 'tested'? 🙈
from zigbee-herdsman.
Uhh, that's great!
In general, will it be difficult to port this to other vendors like OSRAM or Xiaomi?
from zigbee-herdsman.
I have a couple of Tradfri start plugs that will certainly make use of this feature!
from zigbee-herdsman.
Great work @Koenkk ! Can I suggest that a log messages at a lower level is added to say the end point has received an update. E.g. Warning: {friendly_name} firmware update successfully completed.
from zigbee-herdsman.
There is no need for downloading stuff manually, zigbee2mqtt grabs the latest from the ikea servers.
What about for other brands who aren't so "open" with their firmware URLs? E.g. Philips firmwares are occasionally discovered and linked to, but there's no known equivalent to IKEAs version_info.json to base the discovery off.
from zigbee-herdsman.
About the automatic updates: what will happen if we cut off the power during OTA update? If we risk bricking device then we should consider creating manual update procedure.
from zigbee-herdsman.
About the automatic updates: what will happen if we cut off the power during OTA update? If we risk bricking device then we should consider creating manual update procedure.
I'd also say automatic updates should not be on by default. Users need to be able to control how and when their devices get updated. Also for automatic updates there should be some kind of time frame as devices are unavailable during the update which takes some minutes. It's the perfect situation where you might assume you're lights have crashed as they're irresponsive and then you power-toggle them to fix them. Bad decision!
from zigbee-herdsman.
There is no need for downloading stuff manually, zigbee2mqtt grabs the latest from the ikea servers.
@Koenkk so for the manufacturer publishing something online we need to write a specific extension to take care of those right? At least from the code it looks like you added a special one for tradfri
So fallback that will try to parse a local dir with files that are manuId_devId.bin or something could work for those were we only sporadically get binaries for?
In general, will it be difficult to port this to other vendors like OSRAM or Xiaomi?
Form the looks of it, not super hard if they have a nice json or other parseable index online like Tradfri does. Not sure either OSRAM or Xiaomi have those though. (At least signify (Hue) does not so that sucks)
About the automatic updates: what will happen if we cut off the power during OTA update? If we risk bricking device then we should consider creating manual update procedure.
Same risk as when the ikea gateway will do the update I think. I have at least pulled the battery on their remotes when updates were stuck... so not sure how harmful it is.
Looking at the code, I looks still very drafty so I don't think the final result will have them randomly update. There will probably be a mqtt topic to check for updates and one to do the update. If not, I'm sure they could be added without too much hassle.
from zigbee-herdsman.
Holy moly! No need to plug Trådfri gateway into network anymore to get latest firmwares. Huge kudos @Koenkk!
from zigbee-herdsman.
Implemented, let's continue here: Koenkk/zigbee2mqtt#2921
from zigbee-herdsman.
Related Issues (20)
- Ember driver : Error while parsing received frame, status=NO_RX_SPACE. HOT 1
- Ember driver: SET "APS_UNICAST_MESSAGE_COUNT" TO "32" with status=ERROR_OUT_OF_MEMORY. HOT 1
- State of ZiGate support HOT 17
- [Cluster Type] Align cluster definition for 'name' attribute HOT 1
- Silabs Zigbee EmberZNet 8.0.0.0 (and Silicon Labs Gecko SDK 5.0.0.0) announced and to be released in Q3 2024 HOT 1
- Waitress timer is being set at the wrong time HOT 16
- Make waitress timeout configurable HOT 1
- Lower bound of "turnsOffAtBrightness1" ignored by "brightness_move" & "brightness_step" commands HOT 1
- Issue with serialport v12 and node > v20.2.0 HOT 1
- Get strange error in latest z2m with the latest zigbee-herdsman HOT 6
- [Task] ZCL definition update HOT 4
- Want better endpoint.writeStructured() HOT 1
- Z2M 1.35.2 stops with "Adapter disconnected, stopping" after few minutes of uptime (Sonoff-E / EZSP v12 / FW 7.3.2.0 build 212) HOT 3
- Load additional manufacturer-specific clusters from device converter HOT 4
- [Proposal] Removal of "forever" Permit Join HOT 11
- Adapters hardware flow control issues HOT 30
- Ikea Motion Sensor E1525/E1745 not updating properly HOT 6
- proposal: deprecation of legacy clicks HOT 1
- Move special readResponse out of zhc/src/index.ts (fixes legrand pairing issues) HOT 8
- Changes to payload when sending zclData to a device breaks iobroker.zigbee function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigbee-herdsman.