lukas-clarke / eight_sleep

Home Assistant Eight Sleep integration that works with Eight Sleep's new API and OAUTH2
MIT License
107 stars 19 forks source link

Manual use with command line possible? #31

Open gforums opened 5 months ago

gforums commented 5 months ago

Hi there, I am not using home assistant but openhab and wanted to ask whether this easily can be used from command line directly?

If yes, would anyone willing to share some rough details with me on how to do this?

Thanks a lot, Christian

lukas-clarke commented 5 months ago

There is a python project https://github.com/lukas-clarke/pyEight that I stopped maintaining in order to focus on this library. However, in this library there is essentially a clone of that project. You could use the documentation for the python project and apply it to the maintained code in this repo.

gforums commented 5 months ago

Thanks for that hint Lukas! Will give it a try soon :)

gforums commented 5 months ago

Thanks Lukas, got it working with the known ID client/secret from this version. Getting some error messages, but setting heat/cool level and turning off both is working.

Will try to look into more details, but so far thanks for this scipt!

lukas-clarke commented 4 months ago

Nice, feel free to open a PR to the repo if you think the code will help others