blueprint:
  name: SmartCam Alerts — Camera Detection Automation
  description: >
    Trigger Home Assistant automations when SmartCam Alerts detects activity
    on your cameras. Receives webhook notifications and can turn on lights,
    lock doors, send notifications, or trigger any HA automation.
  domain: automation
  input:
    webhook_id:
      name: Webhook ID
      description: The webhook ID to listen for (set this in your SmartCam Alerts dashboard)
      default: smartcam_alert
      selector:
        text:
    action_on_alert:
      name: Alert Action
      description: What to do when a camera alert is triggered
      selector:
        action:

trigger:
  - platform: webhook
    webhook_id: !input webhook_id
    local_only: false

condition: []

action:
  - choose: []
    default: !input action_on_alert
