Python API for Pool Lab Photometers. For now only fetching all data and parsing to classes.
Tip
Python Poollab is available in the default HACS repository. You can install it directly through HACS or click the button below to open it there.
or
- Install HACS if you don't have it already
- Open HACS in Home Assistant
- Search for "Pool Lab"
- Click the download button. ⬇️
- Restart Home Assistant
-
Get a Pool Lab API token to your cloud data from https://labcom.cloud/pages/user-setting
-
Add the Pool Lab integration to your HA by clicking this My Home Assistant link: https://my.home-assistant.io/redirect/config_flow_start/?domain=poollab
or
Navigate to Home Assistant settings, "devices and integrations", click "Add integration" in the right bottom and select "Pool Lab"
-
In the configuration window enter the API token obtained in step 1
-
Each pool in your account should be shown as an own device which you can add to a room
Each sensor entity has the value of the last measurement of each parameter, based on the timestamp from device (not the one stored last) In addition some attributes are provided:
Measured at
: The device timestamp at measureMeasure
: The unique id of the measureIdeal low
: Lower limit for okIdeal high
: Upper limit for okDevice serial
: Device serial of the device that made the measureOperator name
: Mane of operator that did the measurementComment
: Comment to measurement
You only need the file poollab.py
from poollab import PoolLabApi
poollab_api = PoolLabApi("API_TOKEN_FROM_https://labcom.cloud/pages/user-setting")
print(asyncio.run(poollab_a
6C58
pi.request()))