zuidwijk 6 роки тому
батько
коміт
e1dc0e059c
1 змінених файлів з 27 додано та 0 видалено
  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