Update sensor.miflora configuration variables (#6559)

This commit is contained in:
Mryck 2018-10-06 21:25:50 +02:00 committed by Franck Nijhof
parent 0e3fa5d250
commit 028422c580

View File

@ -60,17 +60,45 @@ sensor:
- moisture - moisture
``` ```
- **mac** (*Required*): The MAC address of your sensor. {% configuration %}
- **monitored_conditions** array (*Optional*): The parameters that should be monitored (defaults to monitoring all parameters). mac:
- **moisture**: Moisture in the soil. description: The MAC address of your sensor.
- **light**: Brightness at the sensor's location. required: true
- **temperature**: Temperature at the sensor's location. type: string
- **conductivity**: Conductivity in the soil. monitored_conditions:
- **battery**: Battery details. description: The parameters that should be monitored.
- **name** (*Optional*): The name displayed in the frontend. required: false
- **force_update** (*Optional*): Sends update events even if the value hasn't changed. default: [moisture, light, temperature, conductivity, battery]
- **median** (*Optional*): Sometimes the sensor measurements show spikes. Using this parameter, the poller will report the median of the last 3 (you can also use larger values) measurements. This filters out single spikes. Median: 5 will also filter double spikes. If you never have problems with spikes, `median: 1` will work fine. type: list
- **adapter** (*Optional*): Define the Bluetooth adapter to use (defaults to hci0). Run `hciconfig` to get a list of available adapters. keys:
moisture:
description: Moisture in the soil.
light:
description: Brightness at the sensor's location.
temperature:
description: Temperature at the sensor's location.
conductivity:
description: Conductivity in the soil.
battery:
description: Battery details.
name:
description: The name displayed in the frontend.
required: false
type: string
force_update:
description: Sends update events even if the value hasn't changed.
required: false
type: boolean
median:
description: "Sometimes the sensor measurements show spikes. Using this parameter, the poller will report the median of the last 3 (you can also use larger values) measurements. This filters out single spikes. Median: 5 will also filter double spikes. If you never have problems with spikes, `median: 1` will work fine."
required: false
type: integer
adapter:
description: "Define the Bluetooth adapter to use. Run `hciconfig` to get a list of available adapters."
required: false
default: hci0
type: string
{% endconfiguration %}
<p class='note warning'> <p class='note warning'>
By default the sensor is only polled once every 20 minutes (`scan_interval` is 1200 seconds by default). On a Home Assistant restart sensor will report initial value. If you set `median: 3`, it will take _at least_ 40 minutes before the sensor will report an average value. Keep in mind though that reducing polling intervals will have a negative effect on the battery life. By default the sensor is only polled once every 20 minutes (`scan_interval` is 1200 seconds by default). On a Home Assistant restart sensor will report initial value. If you set `median: 3`, it will take _at least_ 40 minutes before the sensor will report an average value. Keep in mind though that reducing polling intervals will have a negative effect on the battery life.