Skip to main content

Switch valve

Endpoint group client.switch_valve (SwitchValveEndpoints).

API Endpoints to retrieve the switch valve data.

Example

client = KebaKeEnergyAPI(
host="ap4400.local",
username="test",
password="test",
ssl=True,
skip_ssl_verification=True
)
await client.switch_valve.get_position()

get_position​

async def get_position(position: int = 1, *, human_readable: bool = True) -> int | str

Get switch valve position.

Parameters

  • position int (default: 1): Position of the switch valve, starting at 1
  • human_readable bool (default: True): Return a human-readable string

Returns

  • int | str: (0) NEUTRAL / (1) OPEN / (2) CLOSED
KEBAKEBALatest version on PyPI

An asynchronous Python client for the KEBA KeEnergy Web HMI, used by the Home Assistant integration.

A community project, not affiliated with or endorsed by KEBA. KEBA is a registered trademark of its owner.

Requires Python 3.11 or newer.

View source on GitHub
View known issues
Request a feature
View on PyPI
Changelog

Maintainer

@mh-superbox

On this page