You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/plant.markdown
+45-2Lines changed: 45 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,14 @@ ha_category: Other
11
11
ha_release: 0.44
12
12
---
13
13
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
+
14
18
```yaml
19
+
# Example configuration.yaml entry
15
20
plant:
16
-
simulated_plant:
21
+
sunflower:
17
22
sensors:
18
23
moisture: sensor.mqtt_plant_moisture
19
24
battery: sensor.mqtt_plant_battery
@@ -27,9 +32,47 @@ plant:
27
32
min_temperature: 15
28
33
```
29
34
30
-
## Using plain MQTT sensor to get the data
35
+
Configuration variables:
36
+
37
+
- **entity_id** (*Required*): Set by you and is used by the component as the `entity_id`.
38
+
- **sensors** (*Required*):
39
+
- **moisture** (*Optional*): Moisture of the plant. Meassured in %. Can have a min and max value set optionally.
40
+
- **battery** (*Optional*): Battery level of the plant sensor. Meassured in %. Can only have a min level set optionally.
41
+
- **temperature:** (*Optional*): Temperaure of the plant. Meassured in degrees Celcius. Can have a min and max value set optionally.
42
+
- **conductivity:** (*Optional*): Conductivity of the plant. Meassured in µS/cm. Can have a min and max value set optionally.
43
+
- **brightness:** (*Optional*): Light exposure of the plant. Meassured in Lux. Can have a min and max value set optionally.
44
+
- **min_moisture** (*Optional*): Minimum moisture level before triggering a problem.
45
+
- **max_moisture** (*Optional*): Maximum moisture level before triggering a problem.
46
+
- **min_battery** (*Optional*): Minimum battery level before triggering a problem.
47
+
- **min_conductivity** (*Optional*): Minimum conductivity level before triggering a problem.
48
+
- **max_conductivity** (*Optional*): Maximum conductivity level before triggering a problem.
49
+
- **min_temperature** (*Optional*): Minimum temperature before triggering a problem.
50
+
- **max_temperature** (*Optional*): Maximum temperature before triggering a problem.
51
+
- **min_brightness** (*Optional*): Minimum brightness before triggering a problem.
52
+
- **max_brightness** (*Optional*): Maximum brightness before triggering a problem.
53
+
54
+
## {% linkable_title Examples %}
55
+
### Using plain MQTT sensor to get the data
56
+
This is a practial example that uses a multiple of `MQTT sensors` to supply the readings used by the `plant` sensor.
57
+
Another good source of this data would be the [Mi Flora](https://home-assistant.io/components/sensor.miflora/) component.
0 commit comments