Skip to content

Sensor Definitions

This page provides detailed explanations of all sensors, controls, and entities available on the WaterFlowKit. Use this as a reference to understand what each value means and how to use it.

Source Code: View the complete ESPHome configuration on GitHub

Quick Navigation


Water Flow Sensors

The WaterFlowKit supports up to 2 flow sensors. Each sensor provides flow rate and total volume entities.

📖 ESPHome Documentation: Pulse Counter

Flow Rate (L/min)

EntityIDDescriptionUnit
Flow1 Current water usagewater_usageReal-time flow rate through sensor 1L/min
Flow2 Current water usagesens2_water_usageReal-time flow rate through sensor 2 (if connected)L/min

Total Volume (L)

EntityIDDescriptionUnit
Flow1 Total Consumptionsensor_pulse_meter_totalCumulative water volume through sensor 1. Use for Energy Dashboard.L
Flow2 Total Consumptionsens_2_sensor_pulse_meter_totalCumulative water volume through sensor 2. Use for Energy Dashboard.L

How It Works

The sensors use a turbine mechanism:

  1. Water flows through the sensor, spinning an internal turbine
  2. The turbine generates electrical pulses
  3. Each pulse represents a specific volume of water
  4. The WaterFlowKit counts pulses and calculates flow rate

Default Multiplier Values

The default firmware uses these multiplier values:

yaml
filters:
  - multiply: 0.00172  # For current flow rate (L/min)

total:
  filters:
    - multiply: 0.00163  # For total consumption (L)

These default values are calibrated for general use. For precise measurements, calibrate based on your specific sensor model. See Usage Guide — Calibration.

Pulse Formulas by Sensor Model

SensorFormulaApprox. Pulses/LiterCalculated Multiply Value
YF-B1, YF-B7F ≈ 11 × Q~660 pulses/L0.00151515
YF-B5, YF-B6F ≈ 6.6 × Q~396 pulses/L0.00252525
YF-B10F ≈ 7.5 × Q – 3~450 pulses/L0.00222222
YF-DN40-SF ≈ 0.45 × Q~27 pulses/L0.03703704
YF-DN50-SF ≈ 0.20 × Q~12 pulses/L0.08333333

F = frequency (Hz), Q = flow rate (L/min)


Water Temperature Sensors

Available on YF-B7 and YF-B6 sensor models only.

📖 ESPHome Documentation: NTC Sensor

EntityIDDescriptionUnit
Flow1 Water Temperatureflow1_water_temperatureWater temperature through flow sensor 1°C
Flow2 Temperatureflow2_water_temperatureWater temperature through flow sensor 2°C

Technical Details

The temperature sensors are NTC thermistors integrated into the flow sensors:

yaml
sensor:
  - platform: ntc
    id: flow1_water_temperature
    sensor: resistance_sensor
    calibration:
      b_constant: 3950
      reference_temperature: 25°C
      reference_resistance: 50kOhm
    name: Flow1 Water Temperature

Specifications

  • Range: -20°C to +80°C
  • Accuracy: ±0.5°C
  • Sensor type: NTC thermistor (50kOhm @ 25°C, B=3950)

Use Cases

  • Monitor hot water system efficiency
  • Detect water heater issues
  • Track solar water heater performance
  • Verify hot/cold water mixing
  • Heat pump monitoring (supply/return temperatures)

Environment Sensors

The WaterFlowKit includes an HDC1080 sensor for ambient temperature and humidity monitoring.

📖 ESPHome Documentation: HDC1080

EntityIDDescriptionUnit
Temperaturesensor_temperatureAmbient temperature around the WaterFlowKit°C
Humiditysensor_humidityAmbient relative humidity%

Technical Details

yaml
sensor:
  - platform: hdc1080
    temperature:
      name: "Temperature"
      filters:
        offset: -4.5
    humidity:
      name: "Humidity"
      filters:
        offset: 12
    update_interval: 60s

Default Offsets

The firmware applies calibration offsets by default:

  • Temperature: -4.5°C offset
  • Humidity: +12% offset

These can be adjusted if your readings don't match a reference.

Use Cases

  • Monitor conditions in meter cabinet
  • Detect moisture issues
  • Track environment where pipes are located

Device Controls

Switches

EntityIDDescription
Restartswitch_restartRestarts the WaterFlowKit. Useful after configuration changes.

Diagnostic Entities

Connection Status

EntityIDDescription
WiFi Signalsensor_wifi_signalWiFi signal strength in dBm. Updates every 5 minutes. Values closer to 0 = better signal.
Uptimesensor_uptime_timestampTimestamp when the device was last started.

Network Information

EntityDescription
IP addressCurrent IP address of the WaterFlowKit
Connected SSIDName of the WiFi network
Connected BSSIDMAC address of the WiFi access point

Version Information

EntityIDDescription
ESPHome Versiontext_sensor_versionThe ESPHome version running on the device
Software Versiontext_sensor_waterflowkit_versionWaterFlowKit firmware version (e.g., "2025.11")

LED Indicators

The WaterFlowKit has 3 LEDs (configurable via ESPHome):

LEDIDColorDefault Behavior
LED Greenlight_led_greenGreenAvailable for custom use
LED Redlight_led_redRedStatus LED (flashing = not connected)
LED Bluelight_led_blueBlueAvailable for custom use

LED Configuration in ESPHome

yaml
output:
  - platform: ledc
    pin: GPIO16
    id: output_led_green
  - platform: ledc
    pin: GPIO17
    id: output_led_red
  - platform: ledc
    pin: GPIO04
    id: output_led_blue

light:
  - platform: monochromatic
    id: light_led_green
    output: output_led_green
  - platform: status_led
    id: light_led_red
    output: output_led_red
  - platform: monochromatic
    id: light_led_blue
    output: output_led_blue

Entity Naming Convention

All entities follow this naming pattern:

sensor.waterflowkit_[sensor_name]
switch.waterflowkit_[switch_name]
light.waterflowkit_[light_name]

For example:

  • sensor.waterflowkit_flow1_current_water_usage
  • sensor.waterflowkit_flow1_total_consumption
  • sensor.waterflowkit_flow1_water_temperature
  • sensor.waterflowkit_temperature
  • sensor.waterflowkit_humidity

Calibration

If your sensor readings don't match expected values, you can calibrate by adjusting the multiply filter values.

🔧 Calibration Guide: See Usage Guide — Calibration for step-by-step instructions.


ESPHome Configuration

For advanced users who want to customize the WaterFlowKit firmware:

🔧 Advanced Configuration: See Usage Guide — ESPHome Configuration for details.


Need Help?