klali / ha-plejd

Plejd component for Home Assistant
Apache License 2.0
69 stars 15 forks source link

Homebridge implementation #28

Closed blommegard closed 4 years ago

blommegard commented 4 years ago

Hi, thanks for all the work that has been done reverse engineering this.

This is not an issue with this project per se, so feel free to delete / close it if you don't think it belongs here.

I am trying to do a Homebridge plugin for the Plejd system and have got the communication and auth sorted, mostly thanks for his repo. However when receiving messages from the mesh I am not able to decode it, I have even run the messages through your plejd_enc_dec method and the data I get out of it doesn't make any sense to me.

Sample when turning on a light with the DIM-02: Hex data from mesh: 673904805185c81874 When run thru your plejd_enc_dec with my key and BT address of the connected device: b'74d6eee3708623c07c'.

Any idea what might cause this or what I might be doing wrong?

Thanks in advance if you got the time to answer this even though its not related to this project!

blommegard commented 4 years ago

After some more bangin my head against the wall I realised that I had to reverse the BT address buffer.