From a1d618ab10a23ba6f43d7dd3781f2290422a82bc Mon Sep 17 00:00:00 2001 From: Christian Ferbar <5595808+ferbar@users.noreply.github.com> Date: Sun, 22 Mar 2020 14:41:57 +0100 Subject: [PATCH] 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 --- source/_integrations/miflora.markdown | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/_integrations/miflora.markdown b/source/_integrations/miflora.markdown index 162dbd89979..e1037cca244 100644 --- a/source/_integrations/miflora.markdown +++ b/source/_integrations/miflora.markdown @@ -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 %}
@@ -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 +```