Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 4.57 KB

README.md

File metadata and controls

85 lines (62 loc) · 4.57 KB

ESPHome Components

This repo contains components for Microfire sensors that can be used in ESPHome and Home Assistant.

Use

There are several examples:

Temperature Compensation

For conductivity and pH measurements, the temperature of the liquid is important. For accurate measurements, a temperature sensor is needed.

Mod-EC

The component has several optional configuration variables. See example_mod_ec_dallas.yaml for how it is used.

  • temperature_sensor - the ID of a temperature sensor, if not provided, 25°C is used.
  • temperature_coefficient - Defaults to 0.019 - The temperature coefficient to use for compensation. This is usually 0.019 for freshwater/hydroponics/pools, and 0.021 for saltwater. Other liquids have different coefficients.
  • temperature_constant - Defaults to 25.0 - The temperature to adjust the measurement to. For example, the default of 25°C will adjust the measured value as if the water was 25°C.

Mod-pH

The component has several optional configuration variables. See example_mod_ph_dallas.yamlfor how it is used.

  • temperature_sensor - the ID of a temperature sensor, if not provided, 25°C is used.

Mod-NTC

The component has several optional configuration variables. See example_mod_ntc.yamlfor how it is used.

  • beta - the beta calibration value of the attached NTC temperature sensor.

Calibration

Each sensor example comes with calibration controls. They are implemented with lamdas within Home Assistant.

An example of the lambda:

  - platform: template
    id: ec_calibrate_low
    name: EC Calibrate Low 0.1
    icon: mdi:format-vertical-align-bottom
    on_press:
        lambda: |-
          id(ec).calibrateLow(0.1);

To change the particular low-point calibration, edit the 2 0.1 points to match your solution. Do the same thing for mid- and high-points as needed.

Mod-EC

The Mod-EC sensor can use up to three calibration points: low, mid, and high. A single point can also be used. Read the datasheet for detailed information.

Mod-pH

The Mod-pH sensor can use up to three calibration points: low, mid, and high. A single point can also be used. Read the datasheet for detailed information.

Mod-ORP

The Mod-ORP sensor uses a single point. Read the datasheet for detailed information.

Mod-NTC

The Mod-NTC sensor uses a beta value, typically provided by the NTC manufacturer. Read the datasheet for detailed information.

Hardware

All components can be purchased at microfire.co.


Previous Versions

A big thanks to Pascal Vizeli and Jesse Hills for porting our older sensors to ESPHome. They were a great starting point for these components.


Ask a question 🤙


Website

microfire.co