ferensw / homekit-easywave

HAP Homekit cover shutter for Eldat Easywave protocol
0 stars 1 forks source link

Request to migrate easywave class as py package #2

Open willwade opened 3 years ago

willwade commented 3 years ago

Hi Just a request! I would totally love it if you could publish the EasyWave as standalone pypi package. Otherwise what I'm about to do is hack that class for non-homekit purpose and it would be far easier to track an upstream pypi package..! (With a quick minimal example of sending one telegram would be amazing.. I'm new to asyncio and its making my head spin!)

thanks! (Awesome job by the way!)

ferensw commented 3 years ago

To be honest, it crossed my mind before to do this. So, thank you for the reminder. ;-) On my roadmap is to make an API version of this to be more flexible, so a separate package would indeed be helpful.

Unfortunately, this won't be short term, but I will put it higher on my priority list.

willwade commented 3 years ago

Ahh thats ok - I'll hang out and help where I can. My skills are asyncio (well generally anything code) is a bit awful..

We have a much simpler need in our field of AssitiveTech. A lot of people use easywave kit for a call alarm to get help. This is usually just one command. O1,A. I cant fathom out why this - much simpler code - isn't working https://github.com/AceCentre/Easy-Easywave-Send/blob/main/easywavesend.py - Any help appreciated!

ferensw commented 3 years ago

I made some time to create a pypi library. You can install it by running pip(3) install easywave. It is located at https://github.com/ferensw/python-easywave

The cli part is not working completely yet. It can receive packets, but sending has an issue. The code sends a package and it gets an 'OK' from the transceiver, but my cover does not react. I could not yet figure out why.

But I didn't want it to be a show stopper for publishing the library to pypi. It works in combination with my homekit script, so the important part works.

willwade commented 3 years ago

omg! Amazing! I’ll have a play.