浏览代码

Create automation.yaml

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