Procházet zdrojové kódy

Create automation.yaml

zuidwijk před 6 roky
rodič
revize
e1dc0e059c
1 změnil soubory, kde provedl 27 přidání a 0 odebrání
  1. 27 0
      automation.yaml

+ 27 - 0
automation.yaml

@@ -0,0 +1,27 @@
+- alias: "Deurbel"
+  trigger:
+    platform: state
+    entity_id: binary_sensor.deurbel
+    from: 'off'
+    to: 'on'
+  action:
+    service: notify.pushbullet
+    data:
+      message: "Deurbel gaat"
+      title: "Deurbel gaat"
+
+- alias: "Deurbel licht notificatie"
+  trigger:
+    platform: state
+    entity_id: binary_sensor.deurbel
+    from: 'off'
+    to: 'on'
+  condition:
+    condition: state
+    entity_id: input_boolean.mute_doorbell
+    state: 'on'
+  action:
+    service: light.turn_on
+    data:
+      entity_id: group.flashlight
+      flash: short