Skip to main content

Rain Bird Controller

Project description

Python module for interacting with WiFi LNK module of the Rain Bird Irrigation system. This project has no affiliation with Rain Bird.

This module communicates directly towards the IP Address of the WiFi module. You can start/stop the irrigation, get the currently active zone, and other controller settings. This library currently only has very limited cloud support. Also there are a number of Rain Bird devices with very different command APIs.

See documentation for full quickstart and API reference. See the github project.

Quickstart

This is an example usage to get the current irrigation state for all available irrigation zones:

import asyncio
import aiohttp
from pyrainbird import async_client

async def main() -> None:
    async with aiohttp.ClientSession() as session:
        controller: async_client.AsyncRainbirdController = await async_client.create_controller(
            session,
            "192.168.1.1",
            "password",
        )
        zones = await controller.get_available_stations()
        states = await controller.get_zone_states()
        for zone in zones.active_set:
            print(
                f"Sprinkler zone {zone}: {'active' if zone in states.active_set else 'inactive'}"
            )

asyncio.run(main())

See examples for additional details on how to use the APIs and an example command line tool for querying the device.

Compatibility

This library has been tested with the following devices:

  • ESP-TM2

You are welcome to file an issue for improved compatibility with your device especially if you include debug logs that capture the API responses form the device.

See CONTRIBUTING for details on developing in the library itself, such as running the tests and other tooling used in development.

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

pyrainbird-6.4.0.tar.gz (56.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrainbird-6.4.0-py3-none-any.whl (50.5 kB view details)

Uploaded Python 3

File details

Details for the file pyrainbird-6.4.0.tar.gz.

File metadata

  • Download URL: pyrainbird-6.4.0.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrainbird-6.4.0.tar.gz
Algorithm Hash digest
SHA256 1fbc9aea57356566598ca33277df65a9b9ec1abfd32c1a9e9f8c4be1b1fb9195
MD5 e9c5b34ab725092a832f517e5f725947
BLAKE2b-256 bc4ce2ee2778ef4e3d91329e8331958195bf819395faca095fe4a53e02449894

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrainbird-6.4.0.tar.gz:

Publisher: publish.yaml on allenporter/pyrainbird

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrainbird-6.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyrainbird-6.4.0-py3-none-any.whl
  • Upload date:
  • Size: 50.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyrainbird-6.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e61387989b0d509cdb8350dc385a50e9a7c0fb4d13b4d306bfe3a6b7b3f5b30
MD5 0f17938d30861108daf5a31b2f70792e
BLAKE2b-256 35a3899db9cee8aa8a0f01056f7e957d564cd39a3a65461924fbc0ea79be0531

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrainbird-6.4.0-py3-none-any.whl:

Publisher: publish.yaml on allenporter/pyrainbird

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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