msjarrett / trimlight

Analysis and tools for interfacing with the Trimlight lighting system.
MIT License
9 stars 5 forks source link

Trimlight control script #3

Open ecdye opened 2 years ago

ecdye commented 2 years ago

@msjarrett FYI, I created a script to interface with Trimlight Select systems for personal use and have made it available via GitHub Gist at https://gist.github.com/ecdye/2272e0b0244fd712bc2a268f723c2924. It implements some of the functions discovered and documented by you in this project. It also has some implementations that were discovered through my own research and hacking. Comments and suggestions would be appreciated.

msjarrett commented 2 years ago

Very cool! Sounds like you've got the basis of a working command-line client!

Have you figured out any of the command payloads beyond what's described in protocol.md? If so, would definitely appreciate a PR.

ecdye commented 2 years ago

I have been using the decompiled android app to check on some of commands and confirming your research. There are some things that I have discovered like how to rename the device that are not in your protocol description.

ecdye commented 2 years ago

Update, I have released the script as a python module 'TrimPy' its available from the PyPi already. Development is happening at https://www.github.com/ecdye/TrimPy.git. I'll try to make a PR updating your project with my discoveries over the holiday.