278 lines
15 KiB
JSON
278 lines
15 KiB
JSON
[
|
|
{
|
|
"id": "'EUFY: Actionable notification for mobile'",
|
|
"automation": "- alias: 'EUFY: Actionable notification for mobile'\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.doorbell_motion_detected\n - binary_sensor.doorbell_person_detected\n to: 'on'\n id: sensor\n - platform: event\n event_type: mobile_app_notification_action\n id: snooze\n event_data:\n action: SNOOZE\n - platform: event\n event_type: mobile_app_notification_action\n id: alarm\n event_data:\n action: ALARM\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: sensor\n sequence:\n - delay:\n hours: 0\n minutes: 0\n seconds: 3\n milliseconds: 0\n - service: notify.mobile_app_vivo_1805\n data:\n message: Motion detected\n data:\n image: /api/image_proxy/image.doorbell_event_image\n actions:\n - action: ALARM\n title: Alarm\n - action: SNOOZE\n title: Snooze\n - conditions:\n - condition: trigger\n id: snooze\n sequence:\n - service: eufy_security.snooze\n data:\n snooze_time: 10\n snooze_chime: false\n snooze_motion: true\n snooze_homebase: false\n target:\n entity_id: camera.doorbell\n - conditions:\n - condition: trigger\n id: alarm\n sequence:\n - service: eufy_security.trigger_camera_alarm_with_duration\n data:\n duration: 1\n target:\n entity_id: camera.doorbell\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "doorbell motion detected",
|
|
"room": "doorbell",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.doorbell_motion_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "doorbell person detected",
|
|
"room": "doorbell",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.doorbell_person_detected",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "doorbell camera",
|
|
"room": "doorbell",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "doorbell event image",
|
|
"room": "doorbell",
|
|
"type": "image",
|
|
"id": {
|
|
"entity_id": "image.doorbell_event_image",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app vivo 1805",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_vivo_1805",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'EUFY: When motion detection stops turn OFF camera'",
|
|
"automation": "- alias: 'EUFY: When motion detection stops turn OFF camera'\n description: ''\n trigger:\n - type: no_motion\n platform: device\n device_id: your_eufy_doorbell_device_id\n entity_id: your_eufy_doorbell_entity_id\n domain: binary_sensor\n for:\n hours: 0\n minutes: 0\n seconds: 30\n condition: []\n action:\n - service: camera.turn_off\n target:\n device_id: your_eufy_doorbell_device_id\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "eufy doorbell device",
|
|
"room": "doorbell",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "your_eufy_doorbell_entity_id",
|
|
"device_id": "your_eufy_doorbell_device_id"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'EUFY: View Front door camera on person motion detected in doorbell'",
|
|
"automation": "- alias: 'EUFY: View Front door camera on person motion detected in doorbell'\n description: ''\n trigger:\n - type: motion\n platform: device\n device_id: your_eufy_doorbell_device_id\n entity_id: your_eufy_doorbell_entity_id\n domain: binary_sensor\n condition: []\n action:\n - service: camera.turn_on\n target:\n device_id: your_eufy_doorbell_device_id\n data: {}\n enabled: true\n - delay:\n hours: 0\n minutes: 0\n seconds: 2\n milliseconds: 0\n enabled: true\n - service: browser_mod.popup\n data:\n dismissable: true\n autoclose: false\n title: Front door\n size: fullscreen\n timeout: 30000\n browser_id:\n - iMac-safari\n content:\n type: custom:webrtc-camera\n entity: camera.doorbell\n enabled: true\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "doorbell camera",
|
|
"room": "doorbell",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.doorbell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "eufy doorbell device",
|
|
"room": "doorbell",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "your_eufy_doorbell_entity_id",
|
|
"device_id": "your_eufy_doorbell_device_id"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'FRIGATE: Notify person detection'",
|
|
"automation": "- alias: 'FRIGATE: Notify person detection'\n description: Test script for frigate notifications\n trigger:\n - platform: mqtt\n topic: frigate/events\n condition:\n - condition: template\n value_template: '{{ trigger.payload_json[''after''][''label''] == ''person'' }}'\n - condition: template\n value_template: '{{ ''primary_zone'' in trigger.payload_json[''after''][''entered_zones'']\n }}'\n action:\n - service: notify.mobile_app_vivo_1805\n data_template:\n message: A {{trigger.payload_json[\"after\"][\"label\"]}} was detected.\n title: Frigate\n data:\n image: http://HA_URL:8123/api/frigate/notifications/{{trigger.payload_json[\"after\"][\"id\"]}}/thumbnail.jpg?format=android\n tag: '{{trigger.payload_json[\"after\"][\"id\"]}}'\n when: '{{trigger.payload_json[\"after\"][\"start_time\"]|int}}'\n actions:\n - action: URI\n title: Open Image\n uri: http://HA_URL:8123/api/frigate/notifications/{{trigger.payload_json[\"after\"][\"id\"]}}/thumbnail.jpg?format=android\n enabled: true\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "mobile app vivo 1805",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_vivo_1805",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'EUFY: Notify when a face is matched on doorbell'",
|
|
"automation": "- alias: 'EUFY: Notify when a face is matched on doorbell'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.face_recog_matches\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.attributes.names | length > 0 }}'\n actions:\n - action: notify.mobile_app_v2046\n metadata: {}\n data:\n message: Someone is there!\n title: Eufy Doorbell\n enabled: false\n - action: notify.mobile_app_v2046\n metadata: {}\n data_template:\n message: \"{% if 'Unknown' in trigger.to_state.attributes.names[0] %}\\n Someone\\\n \\ is at the door\\n{% else %}\\n Hello {{trigger.to_state.attributes.names[0]}}!!\\\n \\ I see you :)\\n{% endif %}\"\n data:\n image: http://192.168.1.1:8123{{state_attr('image.doorbell_event_image','entity_picture')}}\n actions:\n - action: URI\n title: View Image\n uri: http://192.168.1.1:8123{{state_attr('image.doorbell_event_image','entity_picture')}}\n enabled: true\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "doorbell event image",
|
|
"room": "doorbell",
|
|
"type": "image",
|
|
"id": {
|
|
"entity_id": "image.doorbell_event_image",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "face recognition matches",
|
|
"room": "doorbell",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.face_recog_matches",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mobile app v2046",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_v2046",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'NFC: From webhook'",
|
|
"automation": "- alias: 'NFC: From webhook'\n description: ''\n trigger:\n - platform: webhook\n allowed_methods:\n - GET\n local_only: true\n webhook_id: -zCH00m2PHOAnNGWipJiKux9R\n condition: []\n action:\n - service: light.toggle\n metadata: {}\n data: {}\n target:\n device_id: z5d19fd60e2e2f9a81c92db7f123456\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "light device",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "z5d19fd60e2e2f9a81c92db7f123456"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'NFC: From webhook'",
|
|
"automation": "- alias: 'NFC: From webhook'\n description: ''\n trigger:\n - platform: event\n event_type: office_nfc_tag\n condition: []\n action:\n - service: light.toggle\n metadata: {}\n data: {}\n target:\n device_id: z5d19fd60e2e2f9a81c92db7f123456\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "light device",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "z5d19fd60e2e2f9a81c92db7f123456"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'EUFY-CAM: Publish doorbell image to mqtt'",
|
|
"automation": "- alias: 'EUFY-CAM: Publish doorbell image to mqtt'\n description: ''\n triggers:\n - type: motion\n device_id: yourdoorbelldeviceid\n entity_id: yourdoorbellentityid\n domain: binary_sensor\n trigger: device\n conditions: []\n actions:\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n enabled: true\n - action: mqtt.publish\n metadata: {}\n data:\n topic: doorbell/snapshot\n payload: '{\"image\":\"http://192.168.1.1:8123{{state_attr(''image.doorbell_event_image'',''entity_picture'')\n }}\"}'\n retain: true\n evaluate_payload: false\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "doorbell event image",
|
|
"room": "doorbell",
|
|
"type": "image",
|
|
"id": {
|
|
"entity_id": "image.doorbell_event_image",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "doorbell device 2",
|
|
"room": "doorbell",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "yourdoorbellentityid",
|
|
"device_id": "yourdoorbelldeviceid"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'ALARM: Trigger Homebase alarm when door opens while ARMED'",
|
|
"automation": "- alias: 'ALARM: Trigger Homebase alarm when door opens while ARMED'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.alarm_door_sensors\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 0\n - trigger: state\n entity_id:\n - alarm_control_panel.homebase\n to: triggered\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: alarm_control_panel.smart_alarm\n state: armed_home\n - condition: state\n entity_id: alarm_control_panel.smart_alarm\n state: armed_away\n - condition: state\n entity_id: alarm_control_panel.smart_alarm\n state: armed_night\n actions:\n - action: alarm_control_panel.alarm_trigger\n metadata: {}\n data: {}\n enabled: true\n target:\n entity_id: alarm_control_panel.home_alarm\n - if:\n - condition: not\n conditions:\n - condition: state\n entity_id: alarm_control_panel.homebase\n state: triggered\n then:\n - action: alarm_control_panel.alarm_trigger\n metadata: {}\n data: {}\n target:\n entity_id: alarm_control_panel.homebase\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "alarm door sensors",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.alarm_door_sensors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "homebase alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.homebase",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.smart_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.home_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'ALARM: Update smart home alarm state when Homebase state changes'",
|
|
"automation": "- alias: 'ALARM: Update smart home alarm state when Homebase state changes'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - alarm_control_panel.homebase\n to: null\n conditions: []\n actions:\n - if:\n - condition: and\n conditions:\n - condition: state\n entity_id: alarm_control_panel.homebase\n state: armed_home\n - condition: template\n value_template: '{% if not is_state(''alarm_control_panel.smart_alarm'', ''armed_home'')\n %}true{% endif %}'\n then:\n - action: alarm_control_panel.alarm_arm_home\n metadata: {}\n data: {}\n target:\n entity_id: alarm_control_panel.smart_alarm\n - if:\n - condition: and\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: alarm_control_panel.homebase\n state: disarmed\n - condition: state\n entity_id: alarm_control_panel.homebase\n state: 'Off'\n - condition: template\n value_template: '{% if not is_state(''alarm_control_panel.smart_alarm'', ''disarmed'')\n %}true{% endif %}'\n then:\n - action: script.turn_on\n target:\n entity_id: script.disarm_smart_home_alarm\n data: {}\n - if:\n - condition: and\n conditions:\n - condition: state\n entity_id: alarm_control_panel.homebase\n state: triggered\n - condition: template\n value_template: '{% if not is_state(''alarm_control_panel.smart_alarm'', ''triggered'')\n %}true{% endif %}'\n then:\n - action: alarm_control_panel.alarm_trigger\n data: {}\n target:\n entity_id: alarm_control_panel.home_alarm\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "homebase alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.homebase",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "smart alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.smart_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home alarm",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.home_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "disarm smart home alarm script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.disarm_smart_home_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |