Skip to content

Commit ed611f4

Browse files
Open Home Automationfabaff
Open Home Automation
authored andcommitted
Added documentation for MiFlora sensor (home-assistant#960)
1 parent db36a2e commit ed611f4

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
layout: page
3+
title: "Mi Flora plant sensor"
4+
description: "Instructions on how to integrate MiFlora BLE plant sensor with Home Assistant."
5+
date: 2016-09-19 12:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
ha_category: DIY
11+
ha_release: 0.29
12+
---
13+
14+
The Mi Flora plant sensor is a small Bluetooth Low Energy device that monitors not only the moisture, but also light, temperature and
15+
conductivity.
16+
As only a single BLE device can be polled at the same time, the library implements locking to make sure this is the case.
17+
18+
To use your PM sensor in your installation, add the following to your `configuration.yaml` file:
19+
20+
```yaml
21+
sensor
22+
platform: miflora
23+
mac: xx:xx:xx:xx:xx:xx
24+
name: Flower 1
25+
force_update: false
26+
median: 3
27+
monitored_conditions:
28+
- moisture
29+
- light
30+
- temperature
31+
- conductivity
32+
```
33+
34+
- **mac** (*Required*): The MAC address of your sensor. You can find this be running "hcitool lescan" from command line.
35+
- **name** (*Optional*): The name displayed in the frontend.
36+
- **force_update** (*Optional*): Sends update events even if the value hasn't changed.
37+
- **median** (*Optional*): Sometimes the sensor measurements show spikes. Using this parameter, the poller will report the median of the last
38+
3 (you can also use larger values) measurements. This filters out single spikes. Median: 5 will also filter double spikes.
39+
If you never have problems with spikes, median=1 will work fine.
40+
- **monitored_conditions** (*Required*): The paramaters that should be monitored.
41+
42+
Note that by default the sensor is only polled once every 15 minutes. This means with the median=3 setting, it will take as least 30 minutes before the sensor will report a value after a Home Assistant restart. As the values usually change very slowly, this isn't a big problem.
43+
Reducing polling intervals will have a negative effect on the battery life.

0 commit comments

Comments
 (0)