pdf-icon

Unit Tube Pressure Home Assistant Integration

This tutorial will introduce how to integrate the Unit Tube Pressure positive and negative pressure gauge into Home Assistant to achieve real-time gas pressure monitoring.

Preparation

Note

In this tutorial, the firmware is compiled and uploaded using ESPHome 2025.12.5. If you encounter compilation/upload issues, please consider switching to this version of ESPHome.

Create Device

  1. Create a new device. Click the green button in the bottom right corner to create a device.
  1. Create device name.
  • Click CONTINUE.
  • Click New Device Setup.
  • Enter the device name and click NEXT.
  1. Select device type.
  • Click ESP32-S3.
  • Click SKIP.
  • Start editing the YAML file. Click EDIT. We can customize device functions through the YAML file.

Learn

Sensor Configuration

The GPIO pin assignment here may vary depending on the main controller used. For example, when using AtomS3R as the main controller:

sensor:
  - platform: adc
    pin: GPIO1
    id: adc_voltage
    attenuation: 11db
    update_interval: 100ms
    unit_of_measurement: "V"
    accuracy_decimals: 3

  - platform: template
    name: "Pressure"
    unit_of_measurement: "kPa"
    accuracy_decimals: 2
    update_interval: 100ms
    lambda: |-
      float K = 100.0;
      float B = 110.0;
      float voltage = id(adc_voltage).state;
      float P = voltage * K - B;
      return P;

Download and Flash Firmware

  1. After modification, click SAVE and INSTALL in the top right corner, and select Manual Download in the pop-up window for compilation.
  1. Once firmware compilation is complete, click Download and select Factory format(Previously Modern).
Note
Click Unit Tube Pressure to view the complete example configuration. The first build may take some time, depending on the performance and network quality of the Home Assistant host.
  1. Connect the device to the host via a USB Type-C cable. Open ESPHome Web and click CONNECT to connect to the device.
  1. Find the corresponding serial port number.
  1. Click INSTALL.
  1. Select the compiled firmware for uploading.
  1. After flashing is complete, restart the device.

Quick Start

  1. Click Settings -> Device & services to check the device.
  1. We can find the corresponding device in the Discover section.
  1. After adding the device, the data will be displayed correctly.
  1. Finally, we add these entities to the dashboard; the following shows their display effect.

Video

On This Page