Skip to content

Commit 7c06659

Browse files
SeByDocKynagyrobijesserockz
authored
Doc for Pmwcs3 soil sensor (#2791)
Co-authored-by: H. Árkosi Róbert <[email protected]> Co-authored-by: Jesse Hills <[email protected]>
1 parent d85fb49 commit 7c06659

File tree

4 files changed

+136
-0
lines changed

4 files changed

+136
-0
lines changed

components/sensor/images/pmwcs3.jpg

17.7 KB
Loading

components/sensor/pmwcs3.rst

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
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`

images/pmwcs3.jpg

15 KB
Loading

index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ Environmental
311311
MPL3115A2, components/sensor/mpl3115a2, mpl3115a2.jpg, Temperature & Pressure
312312
MS5611, components/sensor/ms5611, ms5611.jpg, Pressure
313313
NTC Thermistor, components/sensor/ntc, ntc.jpg, Temperature
314+
PMWCS3, components/sensor/pmwcs3, pmwcs3.jpg, Soil moisture & Temperature
314315
QMP6988, components/sensor/qmp6988, qmp6988_env3.png, Temperature & Pressure
315316
RadonEye BLE, components/sensor/radon_eye_ble, radon_eye_logo.png, Radon
316317
RuuviTag, components/sensor/ruuvitag, ruuvitag.jpg, Temperature & Humidity & Accelerometer

0 commit comments

Comments
 (0)