|
| 1 | +PMWCS3 Capacitive Soil Moisture and Temperature Sensor |
| 2 | +====================================================== |
| 3 | + |
| 4 | +.. seo:: |
| 5 | + :description: Instructions for setting up PMWCS3 capacitive soil moisture sensor in ESPHome. |
| 6 | + :image: pmwcs3.jpg |
| 7 | + :keywords: PMWCS3 |
| 8 | + |
| 9 | +The ``pmwcs3`` sensor platform allows you to use your PMWCS3 |
| 10 | +(`informations <https://tinovi.com/wp-content/uploads/2020/01/PM-WCS-3-I2C.pdf>`__) |
| 11 | +capacitive soil moisture and temperature sensor with ESPHome. The :ref:`I²C bus <i2c>` is required to be set up in |
| 12 | +your configuration for this sensor to work. Wiring scheme: red is 3.3V, black & shield is GND, green is SDA and white is SCL. |
| 13 | +2.2kOhm resistors are advised to pullup both SDA & SDA lines. |
| 14 | + |
| 15 | +.. figure:: images/pmwcs3.jpg |
| 16 | + :align: center |
| 17 | + :width: 80.0% |
| 18 | + |
| 19 | + PMWCS3 Capacitive Soil Moisture and Temperature Sensor. |
| 20 | + |
| 21 | + |
| 22 | +.. code-block:: yaml |
| 23 | +
|
| 24 | + # Example configuration entry |
| 25 | + sensor: |
| 26 | + - platform: pmwcs3 |
| 27 | + e25: |
| 28 | + name: "pmwcs3 e25" |
| 29 | + ec: |
| 30 | + name: "pmwcs3 ec" |
| 31 | + temperature: |
| 32 | + name: "pmwcs3 temperature" |
| 33 | + vwc: |
| 34 | + name: "pmwcs3 vwc" |
| 35 | + |
| 36 | +Configuration variables: |
| 37 | +------------------------ |
| 38 | + |
| 39 | +- **e25** (*Optional*): Electrical Conductivity, reference at 25°C in dS/m. |
| 40 | + All options from :ref:`Sensor <config-sensor>`. |
| 41 | +- **ec** (*Optional*): Electrical Conductivity in mS/m. |
| 42 | + All options from :ref:`Sensor <config-sensor>`. |
| 43 | +- **temperature** (*Optional*): Soil temperature in °C. |
| 44 | + All options from :ref:`Sensor <config-sensor>`. |
| 45 | +- **vwc** (*Optional*): Volumetric Water Content in cm3cm−3. |
| 46 | + All options from :ref:`Sensor <config-sensor>`. |
| 47 | +- **address** (*Optional*, int): Manually specify the I²C address of the sensor. |
| 48 | + Defaults to ``0x63``. |
| 49 | +- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the |
| 50 | + sensor. Defaults to ``60s``. |
| 51 | + |
| 52 | +.. _sensor-PMWCS3AirCalibrationAction: |
| 53 | + |
| 54 | +``pmwcs3.air_calibration`` Action |
| 55 | +----------------------------------- |
| 56 | + |
| 57 | +The pmwcs3 probe can to be calibrated in dry/air conditions. |
| 58 | +The air calibration is a 30s procedure. |
| 59 | + |
| 60 | +.. code-block:: yaml |
| 61 | +
|
| 62 | + # Example configuration entry |
| 63 | + sensor: |
| 64 | + - platform: pmwcs3 |
| 65 | + id: pmwcs3_id |
| 66 | + # ... |
| 67 | +
|
| 68 | + # in some trigger |
| 69 | + on_...: |
| 70 | + - sensor.pmwcs3_id.air_calibration: |
| 71 | + id: pmwcs3_id |
| 72 | +
|
| 73 | +Configuration option: |
| 74 | + |
| 75 | +- **id** (**Required**, :ref:`config-id`): The ID of the pmwcs3 sensor. |
| 76 | + |
| 77 | +.. _sensor-PMWCS3WaterCalibrationAction: |
| 78 | + |
| 79 | +``pmwcs3.water_calibration`` Action |
| 80 | +----------------------------------- |
| 81 | + |
| 82 | +The pmwcs3 probe can to be also calibrated in water saturated conditions. Install the probe into a glass of water. |
| 83 | +The water calibration is also a 30s procedure. |
| 84 | + |
| 85 | +.. code-block:: yaml |
| 86 | +
|
| 87 | + # Example configuration entry |
| 88 | + sensor: |
| 89 | + - platform: pmwcs3 |
| 90 | + id: pmwcs3_id |
| 91 | + # ... |
| 92 | +
|
| 93 | + # in some trigger |
| 94 | + on_...: |
| 95 | + - sensor.pmwcs3_id.water_calibration: |
| 96 | + id: pmwcs3_id |
| 97 | +
|
| 98 | +Configuration option: |
| 99 | + |
| 100 | +- **id** (**Required**, :ref:`config-id`): The ID of the pmwcs3 sensor. |
| 101 | + |
| 102 | +.. _sensor-PMWCS3NewI2cAddressAction: |
| 103 | + |
| 104 | +``pmwcs3.newi2caddress`` Action |
| 105 | +----------------------------------- |
| 106 | + |
| 107 | +A new I2C address can be set (for multi-probes cases for example) |
| 108 | + |
| 109 | +.. code-block:: yaml |
| 110 | +
|
| 111 | + # Example configuration entry |
| 112 | + sensor: |
| 113 | + - platform: pmwcs3 |
| 114 | + id: pmwcs3_id |
| 115 | + # ... |
| 116 | +
|
| 117 | + # in some trigger |
| 118 | + on_...: |
| 119 | + - sensor.pmwcs3_id.newi2caddress: |
| 120 | + id: pmwcs3_id |
| 121 | + newaddress: 0x65 |
| 122 | +
|
| 123 | +Configuration options: |
| 124 | + |
| 125 | +- **id** (**Required**, :ref:`config-id`): The ID of the pmwcs3 sensor. |
| 126 | +- **newaddress** (**Required**, int): New I2C address. |
| 127 | + |
| 128 | +See Also |
| 129 | +-------- |
| 130 | + |
| 131 | +- :ref:`sensor-filters` |
| 132 | +- :apiref:`pmwcs3/pmwcs3.h` |
| 133 | +- `Temperature Compensation for Conductivity <https://www.aqion.de/site/112>`__ |
| 134 | +- `PMWCS3 Library <https://github.com/tinovi/i2cArduino>`__ by `@tinovi <https://github.com/tinovi>`__ |
| 135 | +- :ghedit:`Edit` |
0 commit comments