A fully-featured custom component to integrate your ParemTech PTLevel liquid level monitors into Home Assistant.
This integration supports three different connection methods—Local Network, Cloud REST API, and Cloud Token API—allowing you to choose the perfect balance of speed, privacy, and remote management for your setup.
- Three API Modes: Connect locally for instant updates, or via the Cloud for remote tanks.
- Dynamic Volume Calculation: Automatically estimates tank volume in Liters, US Gallons, or Imperial Gallons based on your custom tank size.
- Multi-Device Support: The REST API pulls in all devices attached to your ParemTech account seamlessly.
- Comprehensive Device Health: Monitors Battery Voltage, Battery Status, WiFi Signal, Firmware, and IP/MAC addresses.
- Advanced Local Diagnostics: Access Raw AD values, Zero points, Reset Reasons, and natively reboot the device directly from Home Assistant.
- Native Calibration: Set the Full Point locally or use the custom Action to calibrate remote tanks dynamically.
- Open HACS in Home Assistant.
- Click the three dots in the top right corner and select Custom repositories.
- Add the URL to this repository and select Integration as the category.
- Click Add, then search for "PTLevel" in HACS and click Download.
- Restart Home Assistant.
- Download the latest release from this repository.
- Copy the
ptlevelfolder into your Home Assistantcustom_componentsdirectory. - Restart Home Assistant.
Once installed, go to Settings -> Devices & Services -> Add Integration and search for PTLevel. You will be prompted to choose one of three connection methods:
Fastest and most reliable. Communicates directly with the PTLevel device on your local WiFi network. Bypasses the cloud entirely.
- IP Address: The IP address of your PTLevel device (can often be auto-discovered).
- Tank Size (Optional): The total capacity of your tank (used to estimate volume).
- Units: Choose between Liters, Imperial Gallons, or US Gallons.
Best if you want to manage multiple PTLevel devices on a single account, or want to access advanced cloud actions (like the dynamic calibration service).
Because this relies on a secure Application Link, setup is a two-part process.
Part 1: Generate your Client ID and Secret
- Open the PTDevices App or log into the web portal.
- Navigate to Home -> Account.
- Scroll down to the bottom and click the Gear/Settings tab.
- (Note: You will see "Token API" at the top of this page. Ignore this section).
- Scroll down to the REST API section. Look for the "Create New Client" heading.
- In the text box directly to the right of the "Create New Client" button, paste this exact URL:
https://my.home-assistant.io/redirect/oauth - Click the Create New Client button.
- The system will generate a Client ID and a Client Secret. Copy both of these down.
Part 2: Add Credentials to Home Assistant
- Open Home Assistant and navigate to Settings > Devices & Services.
- Click the Three Dots Menu (
...) in the top right corner. - Select Application Credentials from the dropdown menu.
- Click Add Application Credentials in the bottom right corner.
- Fill out the form:
- Integration: Select PTLevel
- Name:
ParemTech REST API - Client ID: Paste the Client ID you generated in Part 1.
- Client Secret: Paste the Client Secret you generated in Part 1.
- Click Create.
Part 3: Add the Integration
- Navigate back to the main Devices & Services page.
- Click Add Integration and search for PTLevel.
- Select OAuth2 Account Link (All Devices) from the dropdown menu.
- Home Assistant will securely redirect you to the ParemTech login page. Log in with your standard email and password to authorize the link.
- Home Assistant will automatically discover and set up every PTLevel device attached to your account!
Best for a single, remote tank where you only want standard monitoring data.
- Log into your PTDevices account and go to Account -> Settings.
- Under the Token API section, copy your generated token.
- Back in Home Assistant, select the Cloud Only connection type.
- Enter your Device ID (MAC Address) and your API Token.
Depending on your connection type, the following entities will be created for each tank:
| Sensor / Entity | Type | Available In | Description |
|---|---|---|---|
| Level | Sensor | All | The water level percentage (0-100%). |
| Volume | Sensor | All | Estimated volume in your selected unit based on the tank size. |
| Temperature | Sensor | All | Enclosure temperature. |
| Battery Voltage | Sensor | All | Device battery voltage. |
| Battery Status | Sensor | All | Good, Ok, or Low. |
| WiFi Signal | Sensor | All | Device WiFi signal strength (%). |
| Firmware Version | Sensor | All | Current firmware version running on the device. |
| IP Address | Sensor | All | The local IP of the device. |
| MAC Address | Sensor | All | The hardware MAC address. |
| Raw Value (1) | Sensor | Local Only | The raw AD sensor reading. |
| Zero Value (z) | Sensor | Local Only | The established zero-point AD reading. |
| Reset Reason | Sensor | Local Only | The reason for the last device reboot. |
| Set Full Point | Button | Local Only | Captures the current Raw AD value as the new 100% full mark. |
| Restart Device | Button | Local Only | Sends a command to reboot the ESP chip. |
When set up via the REST API, this integration exposes a custom Home Assistant Action that allows you to easily calibrate your tank levels from dashboards or automations.
ptlevel.calibrate_rest_level
device_id: The MAC address of your device (e.g.,28372FA8D66C).tank_height: The total depth/height of your tank (e.g., 100).water_height: The current exact height of the water (e.g., 85).
The integration will automatically calculate the new percentage and fire the proper calibration payload to the cloud.
- Polling Limits: The Local API polls your device every 60 seconds. To prevent your account from being rate-limited by ParemTech, the Cloud Token and REST APIs poll every 10 minutes.
- Volume Estimation: Volume is a mathematical estimation based on the percentage level and your stated tank size. It assumes a uniform tank shape (like a vertical cylinder or square).
- Duplicate Sensors: If you switch connection types (e.g., moving from Local to REST), Home Assistant will seamlessly merge the devices based on their MAC Address so you don't end up with duplicate dashboards.