Update miflora documentation: add go_unavailable_timeout (#11864)

* Update miflora documentation: add go_unavailable_timeout

* Miflora documentation: fix type

* Miflora documentation: remove template variables

* Miflora: change go_unavailable_timeout type to integer
This commit is contained in:
Christian Ferbar 2020-03-22 14:41:57 +01:00 committed by GitHub
parent adb52a1720
commit a1d618ab10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,6 +103,11 @@ adapter:
required: false
default: hci0
type: string
go_unavailable_timeout:
description: "Timeout to report this device as unavailable. This option hides a bad link quality"
required: false
default: 7200
type: integer
{% endconfiguration %}
<div class='note warning'>
@ -123,6 +128,7 @@ sensor:
name: Flower 1
force_update: true
median: 3
go_unavailable_timeout: 43200
monitored_conditions:
- moisture
- light
@ -130,3 +136,18 @@ sensor:
- conductivity
- battery
```
An automation example to report a battery failure:
```yaml
- id: flower1_moisture_unavailable_check
alias: Flower 1 sensors available
trigger:
- entity_id: sensor.flower1_moisture
for: 24:00:00
platform: state
to: unavailable
action:
- data_template:
message: "Flower 1 moisture is unavailable for more than 24 hours"
service: notify.notifier_telegram_someone
```