dib0 / elro_connects

The ELRO Connects uses a propriety protocol on the local network over UDP. This is the reversed engineered python implementation of the protocol.
MIT License
16 stars 7 forks source link

Device sync improvements #23

Closed Skons closed 2 years ago

Skons commented 2 years ago

This PR improves the way devices are synced. It has got a reverse engineered device sync implementation from the original app. It does this by using the DEVICE_NAME_REPLY, grabbing the ID of the device and send it back with a bogus device state. This will trigger DEVICE_STATUS_UPDATE to be sent to ELRO Connects. With this, ELRO Connects will get all the devices and their statuses within ~40 seconds after launch.

The protocol documentation has also been updated.

Skons commented 2 years ago

This PR solves issue #18

Skons commented 2 years ago

@hildensia not to push you, but do you have time to review this pr?

hildensia commented 2 years ago

Only minor things. Can you run the pep8 tool on your code to lint it?