Custom integration for PTLevel wireless liquid level monitors by ParemTech.
Status: Initial scaffolding. The PTDevices cloud API needs to be reverse-engineered to complete the integration.
- Monitor tank level percentage and estimated volume
- Battery and signal strength sensors
- Configurable polling interval
- Config Flow (UI-based setup)
- Open HACS in Home Assistant.
- Go to Integrations > Custom repositories.
- Add
https://github.com/YOUR_ORG/home-assistant-ptlevelas an Integration. - Install PTLevel.
- Restart Home Assistant.
- Go to Settings > Devices & Services > Add Integration and search for PTLevel.
- Copy the
custom_components/ptlevelfolder into your Home Assistantconfig/custom_componentsdirectory. - Restart Home Assistant.
- Add the integration via the UI.
You will need your PTDevices account username and password (same as the mobile app / https://ptdevices.com).
The PTDevices cloud API is not publicly documented. To make this integration functional, you need to capture the actual API endpoints:
- Log into https://ptdevices.com using a desktop browser (Chrome/Edge/Firefox).
- Open Developer Tools (F12) and switch to the Network tab.
- Look for XHR/Fetch requests that return JSON data.
- Common patterns to look for:
POST /api/loginorPOST /api/authGET /api/devicesGET /api/tanksGET /dashboard/data
- Note the request URL, headers (especially
Authorizationor session cookies), and response JSON structure. - Update
custom_components/ptlevel/api.pywith the real endpoints and authentication flow. - Open a PR or issue to share your findings!
Water tank level (percentage/volume) is a state measurement, not a consumption measurement. Home Assistant's Energy dashboard tracks utility consumption (water usage over time). If you have a flow meter or the PTLevel can estimate usage, you may be able to add it as a water source in the Energy dashboard.
For now, this integration exposes tank level as regular sensors for automations and dashboards.
If your Home Assistant Energy panel is missing:
- Ensure you are logged in as an Owner/Admin user.
- Check that
default_config:is present in yourconfiguration.yaml. - Add
energy:to yourconfiguration.yamlif missing:energy: - Restart Home Assistant.
- Clear your browser cache or try a different browser.
- Navigate directly to
http://YOUR_HA_IP:8123/config/energy. - If using a non-admin account, create a new admin user to verify.
- Home Assistant has an official Enphase Envoy integration.
- Go to Settings > Devices & Services > Add Integration and search for Enphase Envoy.
- It will automatically discover your Envoy gateway on the local network.
- Once added, go to Settings > Dashboards > Energy and add your solar production under Solar Panels.
- Lumin does not have an official HA integration.
- Options:
- Use the unofficial lumin-home-assistant integration if available, or build one using their API.
- Use MQTT or local polling if the Lumin panel exposes data locally.
- Add individual device sensors under Energy > Individual Devices.
- Home Assistant has a Flo integration for Moen smart water valves.
- Go to Settings > Devices & Services > Add Integration and search for Flo.
- This provides flow rate and water consumption.
- In the Energy dashboard, add a Water Source and select the Flo consumption sensor.
- Home Assistant has an EcoNet integration.
- Go to Settings > Devices & Services > Add Integration and search for EcoNet.
- It exposes energy usage sensors that can be added to the Energy dashboard under Individual Devices.
- Fork the repository.
- Create a feature branch.
- Update
api.pyonce the real PTDevices API is known. - Submit a PR.
MIT