From ada4482828e557429801740961fb145dcafe35d0 Mon Sep 17 00:00:00 2001 From: rgc99 Date: Mon, 23 May 2022 20:58:32 +0000 Subject: [PATCH] Check integration is installed --- packages/irrigation_unlimited_smart_irrigation.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/irrigation_unlimited_smart_irrigation.yaml b/packages/irrigation_unlimited_smart_irrigation.yaml index 4f03dbf..6a5a7d1 100755 --- a/packages/irrigation_unlimited_smart_irrigation.yaml +++ b/packages/irrigation_unlimited_smart_irrigation.yaml @@ -1,6 +1,6 @@ # Filename: irrigation_smart_irrigation.yaml # -# Verion: 1.0.1 +# Verion: 1.0.2 # # Description: Example automation for HAsmartirrigation integration # (smart_irrigation)[https://github.com/jeroenterheerdt/HAsmartirrigation] @@ -51,5 +51,10 @@ automation: - binary_sensor.irrigation_unlimited_c1_m from: "on" to: "off" + condition: + condition: and + conditions: + - "{{ states('sensor.smart_irrigation_daily_adjusted_run_time') != 'unknown' }}" + - "{{ false }}" # Change this to true when HAsmartirrigation is setup. action: - service: smart_irrigation.smart_irrigation_reset_bucket