Browse Source

Create automation.yaml

zuidwijk 6 năm trước cách đây
mục cha
commit
e1dc0e059c
1 tập tin đã thay đổi với 27 bổ sung0 xóa
  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