Skip to main content

Switcher Water Heater Unofficial Bridge and API.

Project description

Switcher Water Heater Unofficial Bridge and API
pypi-version pypi-downloads license-badge conventional-commits

gh-build-status read-the-docs codecov

PyPi module named aioswitcher for integrating with the Switcher Water Heater.
Please check out the documentation.

Install

pip install aioswitcher

Usage Example

Please check out the documentation for the full usage section.

async with SwitcherV2Api(
        your_loop, ip_address, phone_id,
        device_id, device_password) as swapi:
    # get the device state
    state_response = await swapi.get_state()

    # control the device: on / off / on + 30 minutes timer
    turn_on_response = await swapi.control_device(consts.COMMAND_ON)
    turn_off_response = await swapi.control_device(consts.COMMAND_OFF)
    turn_on_30_min_response = await swapi.control_device(consts.COMMAND_ON, '30')

Contributing

The contributing guidelines are here

Code of Conduct

The code of conduct is here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioswitcher-1.2.2.tar.gz (18.3 kB view hashes)

Uploaded Source

Built Distribution

aioswitcher-1.2.2-py3-none-any.whl (22.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page