gluap / pyduofern

GNU General Public License v2.0
40 stars 11 forks source link

Rademacher changed pairing codes from 6 digits to 10 digts #31

Open citmln opened 3 years ago

citmln commented 3 years ago

I have bought a RolloTube I-line Duofern Medium roller shutter. Unfortuantely Rademacher has changes the pairing code from 6 digits to 10 digits. Pairing isnot possible and I got errors:

Output: entering pairing mode 2021-07-04 18:23:45,858: sending 04000000000000000000000000000000000000000000 from write queue, 0 msgs left in queue 2021-07-04 18:23:46,386: got pairing reply 2021-07-04 18:23:46,386: detected unknown device, ID=XXXXXX 2021-07-04 18:23:46,388: DUOFERN device paired, ID XXXXXX 2021-07-04 18:23:46,393: paired new device XXXXXX 2021-07-04 18:23:48,178: Unknown msg: 0fff0606000112400301000000000XXXXXXYYYYYY 2021-07-04 18:23:53,249: DUOFERN unknown msg: YYYYYYce3005a1a1100000000000XXXXXXXffffff01 2021-07-04 18:24:45,621: sending 05000000000000000000000000000000000000000000 from write queue, 1 msgs left in queue 2021-07-04 18:24:45,640: sending 05000000000000000000000000000000000000000000 from write queue, 0 msgs left in queue

gluap commented 3 years ago

Hi @citmln Edit: Nevermind my earlier comment. I see now that rademacher seems to be advertising 10 digit codes for their homepilot device. https://service.rademacher.de/hc/en-us/articles/360015461419-10-digit-radio-code-How-can-I-register-devices-with-a-10-digit-radio-code- . Unfortunately as far as I can tell there has been no reverse engineering of the new protocol yet - Rademacher advertise that users specifically need to have a new firmware for their rademacher devices.

Thank you for reporting this - likely this means that until somebody with the right devices reverse-engineers the handshake (and possibly changed protocol) these new devices can not be used with the open source duofern modules. My guess is that to properly do it one needs to use both a homepilot and duofern device with 10 digits to see how the protocol looks in between the two.

For the time being the only thing I can do is leave a note about 10-digit devices not working with the module.

t-animal commented 2 years ago

Does anybody know if this affects all newer duofern devices or just the rollotube devices?

rakragh commented 2 years ago

I could help maybe. Plan to buy further three 10-digit devices.

Rademacher told me "The 10-digit motors can be registered for Homepilot 1 (v 4.6.6) but not via the pairing code. You can register the motors using the button on the motor head. However, it is possible that not all functions are available in the Homepilot due to the software status, but it is possible to control them."

I am still having the Homepilot (somewhere in a box) and could try to figure out how 10-digits are getting shrinked or placeholders are getting filled.

Due to the fact that we use only basic control features, I think we could could give it a try.

t-animal commented 2 years ago

I'm sorry I forgot to answer my own question.

I bought two Rademacher rollotron duofern 1800-UW devices. I could pair them, because they implemented the update backwards compatible (at least they say so in a help article that I can't find now). I could pair them normally using the USB stick (see issue in parenr project), but it was important in which order I triggered the pairing. I think I had to start it at the devices and then in home assistant. The rollotrons shortly activated to signal successful pairing and I could then use them in home assistant (after starting the sync service once, of course).

Sounds like it shouldn't be too hard to reverse. I just wish Rademacher were more open. I called them a few years back and they didn't want to release any information. Even when I told them that security by obscurity is a bad idea, they insisted.