From 7fc7d674f409f91e500cac258462c39ddbb4f84a Mon Sep 17 00:00:00 2001
From: pgrondek <pgrondek@gmail.com>
Date: Tue, 18 May 2021 09:32:42 +0200
Subject: [PATCH] Fix washing machine automation

---
 automations/files/automations/bathroom-washing-machine.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/automations/files/automations/bathroom-washing-machine.yaml b/automations/files/automations/bathroom-washing-machine.yaml
index 2d488a3..0c60b6e 100644
--- a/automations/files/automations/bathroom-washing-machine.yaml
+++ b/automations/files/automations/bathroom-washing-machine.yaml
@@ -13,6 +13,10 @@
         minutes: 15
         seconds: 0
         milliseconds: 0
+  condition:
+    - condition: state
+      entity_id: switch.washing_machine_on_off
+      state: 'on'
   action:
     - service: switch.turn_off
       entity_id: switch.washing_machine_on_off