arska / controlmyspa

Python library for Balboa ControlMySpa.com
https://pypi.org/project/controlmyspa/
MIT License
5 stars 4 forks source link

Add ability to check the online status of the spa #36

Closed garysargentpersonal closed 6 months ago

garysargentpersonal commented 1 year ago

Quite frequently I find the spa goes offline, sometimes for a few minutes, and all values like temperature etc are then stale.

You can detect if the spa is offline. Is it possible to add something like this in?...

    @property
    def online_status(self):
        """
        Get online status
        """
        # update fresh info
        # self._get_info()
        return self._info["currentState"]["online"]
arska commented 6 months ago

Thanks, added the "online" property in https://github.com/arska/controlmyspa/commit/9d3239a6cb536bc56cc43981e896c4e8b3b5d9c5