Skip to content

Commit 4ddac0e

Browse files
authored
Update plant.markdown
Add further information to the plant sensor.
1 parent 37c9530 commit 4ddac0e

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

source/_components/plant.markdown

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ ha_category: Other
1111
ha_release: 0.44
1212
---
1313

14+
This`plant`component lets you merge moisture, conductivity, light intensity, temperature and battery level for a plant into a single UI element. It also supports setting minimum and maximum values for each measurement and will change its state to "problem" if it is not within those limits.
15+
16+
To use your `plant` sensor in your installation, add the following to your `configuration.yaml` file:
17+
1418
```yaml
19+
# Example configuration.yaml entry
1520
plant:
1621
simulated_plant:
1722
sensors:
@@ -27,9 +32,42 @@ plant:
2732
min_temperature: 15
2833
```
2934
30-
## Using plain MQTT sensor to get the data
35+
Configuration variables:
36+
37+
- **simulated_plant** (*Required*):
38+
- **sensors** (*Required*):
39+
- **moisture** (*Optional*):
40+
- **battery** (*Optional*):
41+
- **temperature:** (*Optional*):
42+
- **conductivity:** (*Optional*):
43+
- **brightness:** (*Optional*):
44+
- **min_moisture** (*Optional*):
45+
- **max_moisture** (*Optional*):
46+
- **min_battery** (*Optional*):
47+
- **min_conductivity** (*Optional*):
48+
- **min_temperature** (*Optional*):
49+
50+
## {% linkable_title Examples %}
51+
### Using plain MQTT sensor to get the data
52+
This is a practial example that uses a multiple of `MQTT sensors` to supply the readings used by the `plant` sensor.
53+
3154

3255
```yaml
56+
# Example configuration.yaml entry
57+
plant:
58+
simulated_plant:
59+
sensors:
60+
moisture: sensor.mqtt_plant_moisture
61+
battery: sensor.mqtt_plant_battery
62+
temperature: sensor.mqtt_plant_temperature
63+
conductivity: sensor.mqtt_plant_conductivity
64+
brightness: sensor.mqtt_plant_brightness
65+
min_moisture: 20
66+
max_moisture: 60
67+
min_battery: 17
68+
min_conductivity: 500
69+
min_temperature: 15
70+
3371
sensor:
3472
- platform: mqtt
3573
name: mqtt_plant_moisture

0 commit comments

Comments
 (0)