basilfx / TRADFRI-Hacking

Hacking IKEA TRÅDFRI products, such as light bulbs, window blinds and other accessories.
646 stars 64 forks source link

possibility to emulate tradfri blinds #47

Closed comlit closed 4 months ago

comlit commented 2 years ago

hi I recently connected my somfy rts blinds to my smart home. I can now control it through http requests. I got some Ikea smart home products already installed in my home, so I wondered if it is possible to emulate a tradfri blind and connect it to my existing work so that in the end it would be possible to control the somfy blind through the Ikea app. From what I saw in this repo it seemed as this would be possible. I would like to hear your thoughts and suggestions on this, since I have got no clue what I'm doing :). thanks

basilfx commented 2 years ago

Emulation would mean that you would create some piece of hardware that behaves exactly as the IKEA blinds.

It would be much easier to see how the IKEA blinds work, and how you could hook it up to your existing blinds. So whenever the motor moves, route that signal to your existing blinds. You need to reverse-engineer the existing IKEA solution, to see what signals are sent to the hardware that physically controls the blinds.

Easy answer, hard(er) in reality ;-)

CableCatDK commented 1 year ago

I have bought a spare used blind (705.142.61) in IKEA for only ~67€. When I get time, I will make a tear down.

MattWestb commented 1 year ago

That was EXPENCIVE !!!

IMG_20221014_161426 IMG_20221014_160524 IMG_20221014_160604 They still using the MG1P module but i think they doing on upgrade to the MG21 and making the same format then they cant producing there own module so long and its expensive and they is buying millions one the MG21 from silbabs so its not expensive for IKEA only one new PCB and firmware from GSDK / EZSP 4/7.2.X.

CableCatDK commented 1 year ago

90% rabatt, that is something. I only got 32% rabat, and additional 200 DKK from a coupon. IMG_7235

MattWestb commented 1 year ago

It was 50% off but only the battery was in the package no remote, mounting, changer instructions and so on and it was badly scratched but working OK. I was asking for guarantee and the rest of the missing things and then was not saying and good things so i was saying its was for the trash but im interested in the Zigbee module and was getting one new price without guarantee.

honglihu1986 commented 1 year ago

idlefish-msg-1654849010830 Screenshot_20230523-182558_Drive L}$U1EH(I{E}2X%R 9HZCV

MattWestb commented 1 year ago

@honglihu1986 You must have some connection problem with the MG1P chip then it cant being debug locked (as MG21) only writ protecting flash pages. Did you disconnect the motor and the battery so they cant interference with the debug connection ? Here is the TREDANSEN block-out cellul blind user data E2022-UD.zip and it shall working with one normal IKEA bootloader plus rolling on extracted OTA file like we was doing with Symfonosk 2.

Also UD is only name is overrided and no hardware parameter so they is using the same motor controller board and software on it = very good.

Edit: In newer version of commander / Segger libs you also need connecting the reset pin or its not working.

honglihu1986 commented 1 year ago

Thank you very much for the guidance, I don't understand how to rolling on the extracted OTA file, I flashed this user data into an outlet, Home smart 1 shows a blind, but it can't OTA into a blind, it shows the latest firmware.

honglihu1986 commented 1 year ago

Screenshot_20230524-160258_Home smart 1

MattWestb commented 1 year ago

Ops its little more advanced. The OTA file is rapped with metadat that need being removes and you is getting one EBL/GBL file that can being flashed with commander. I must look for the ext instruction but you can doing it with zigpy.cli.

If you have dumping the main flash of one blind its the easiest way only flashing it on one new module and only need the user data for working OK and can being OTA updated without problems.

MattWestb commented 1 year ago

For dumping MG1P modules you can using my old guide that is not complete but is working and explaining most things https://github.com/MattWestb/IKEA-TRADFRI-ICC-A-1-Module/tree/master/Flashing-MG

Edit: also possible doing it with Silabs commander CLI or Seggers J-Flasher.

MattWestb commented 1 year ago

By the way one updated firmware for all blinds in in the pipe. https://csa-iot.org/csa_product/connected-roller-blind/