I got my answer from the source of the python module, it seems the correct url for the command is https://api.avi-on.com/sessions, which would then make
The REST api no longer provides an API key. I have been able to reproduce the basic communication using bleak instead of bluepy, but that now is the main thing holding me back. AVI-ON has been making a lot of changes. I am not keen on the internet access bridge, as it seems to route all control operations via their website.
Has anyone recently been able to retrieve an API key? Will buying an access bridge return the API key?
In my case it looked like a giant base64 encoded string (something like ZTNiMGM0NDI5OGZjMWMxNDlhZmJmNGM4OTk2ZmI5MjQyN2FlNDFlNDY0OWI5MzRjYTQ5NTk5MWI3ODUyYjg1NSAgLQo= but not that), which you use as is (you don’t decode it).
Using this, I was able to get my light to turn off using a toy script using the bleak library. Unfortunately, the encryption of commands is done using the csrmesh library, which currently also depends on bluepy (although it’s not used by the avion library itself).