GithubHelp home page GithubHelp logo

arska / controlmyspa Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 66 KB

Python library for Balboa ControlMySpa.com

Home Page: https://pypi.org/project/controlmyspa/

License: MIT License

Python 100.00%
balboa hacktoberfest python

controlmyspa's People

Contributors

arska avatar hedda avatar hr-frodo avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

controlmyspa's Issues

[REQUEST] ControlMySpa integration for Home Assistant based on this libary

@arska Would you consider writing a native "ControlMySpa" integration component for Home Assistant based on this library?

https://community.home-assistant.io/t/integration-for-a-spa-question-about-available-entities/156760/

Or alternatively, maybe extend the existing "Balboa Spa Client" to also add support for ControlMySpa cloud API as an option?

https://www.home-assistant.io/integrations/balboa/

There is also this other custom component Spa Client that is compatible with Balboa BP System + bwa WiFi module as well:

https://github.com/plmilord/Hass.io-custom-component-SpaClient

See Home Assistant Developer documentation on Starting with Development and building a new integration component for it:

https://developers.home-assistant.io/

https://developers.home-assistant.io/docs/development_index/

https://developers.home-assistant.io/docs/creating_component_index

https://developers.home-assistant.io/docs/integration_fetching_data/

Support for Chromazon3

My tub has Chomazon3 lights - see https://www.balboawatergroup.com/Chromazon3

To get these to turn on, I had to create a method like the existing set_light one as below...

def set_chromazon3(self, state=False):
        """
        Enable/disable Chromeazon3 lights
        :param state: False to turn off, True to turn on
        """
        response = requests.post(
            "https://iot.controlmyspa.com/mobile/control/"
            + self._info["_id"]
            + "/tzl/setPower",
            json={
                "desiredState": ("ON" if state else "OFF"),
            },
            headers={"Authorization": "Bearer " + self._token["access_token"]},
        )
        response.raise_for_status()
        # update the local info
        self._get_info()

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/main.yml
  • actions/checkout v4
  • actions/setup-python v5
  • actions/checkout v4
  • actions/setup-python v5
  • actions/upload-artifact v4
  • actions/download-artifact v4
  • actions/download-artifact v4
  • sigstore/gh-action-sigstore-python v2.1.1
  • actions/download-artifact v4
pep621
pyproject.toml
  • requests >2
  • setuptools >=64
  • setuptools_scm >=8
pip_requirements
requirements.txt
  • certifi ==2024.6.2
  • charset-normalizer ==3.3.2
  • idna ==3.7
  • pyyaml ==6.0.1
  • requests ==2.32.3
  • responses ==0.25.3
  • urllib3 ==2.2.1

  • Check this box to trigger a request for Renovate to run again on this repository

Add ability to check the online status of the spa

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"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.