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

