cdpuk / ha-bestway

Home Assistant integration for Bestway / Lay-Z-Spa hot tubs
MIT License
59 stars 15 forks source link

Websocket cloud server for up to date status and python library #28

Open brendann993 opened 1 year ago

brendann993 commented 1 year ago

I want to pre-empt this by saying my knowledge of python is very limited but I have started a library which is a wrapper for the Gizwits cloud API and their websocket server that allows you to receive updates from the server when status of devices change. I have not implemented pushing updates to the server fully yet. I was mosty inspired by the code here and getting it to work for an aquarium pump I have that uses the same API.

Fully open to pull requests, suggestions, etc. https://pypi.org/project/pyGizwits https://github.com/brendann993/pyGizwits

cdpuk commented 1 year ago

That looks extremely useful - thanks for working it out :)

It was just the other day I was reading over the Gitwitz developer docs, but I don't currently have the time for much dev work.

It's going to take some time to move the integration in this direction, but it's definitley the way to go and I'll try to do it in a way that can switch over to an external library.