EZO sensor circuits

The ezo sensor platform allows you to use your EZO sensor circuits with ESPHome. The I²C Bus is required to be set up in your configuration for this sensor to work.

../../_images/ezo-ph-circuit.png
# Example configuration entry
sensor:

  - platform: ezo
    id: ph_ezo
    address: 99
    unit_of_measurement: "pH"
    update_interval: 10s

  - platform: ezo
    id: rtd_ezo
    name: "RTD Temperature"
    address: 102
    accuracy_decimals: 2
    unit_of_measurement: "°C"
    update_interval: 10s

Configuration variables:

  • address (Required, int): Specify the I²C address of the sensor.

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.

  • id (Optional, ID): Set the ID of this sensor for use in lambdas.

  • All other options from Sensor.

lambda calls

From lambdas, you can set the temperature compensation for the sensors that support that option.

  • set_tempcomp_value(): Send the given temperature to the sensor.

    // Within a lambda, set the temperature compensation value from the temperature sensor
    id(ph_ezo).set_tempcomp_value(id(rtd_ezo).state);
    

See Also