---
export_recording:
  name: Export recording
  description: Export a custom recording or timelapse.
  target:
    entity:
      integration: frigate
      domain: camera
      device_class: camera
  fields:
    playback_factor:
      name: Playback Factor
      description: Playback factor for recordings
      required: true
      advanced: false
      example: realtime
      default: realtime
      selector:
        select:
          options:
            - "realtime"
            - "timelapse_25x"
    start_time:
      name: Export Start Time
      description: Start time of exported recording
      required: true
      advanced: false
      selector:
        datetime:
    end_time:
      name: Export End Time
      description: End time of exported recording
      required: true
      advanced: false
      selector:
        datetime:

favorite_event:
  name: Favorite or unfavorite Event
  description: >
    Favorites or unfavorites an event. Favorited events are retained
    indefinitely.
  target:
    entity:
      integration: frigate
      domain: camera
      device_class: camera
  fields:
    event_id:
      name: Event ID
      description: ID of the event to favorite or unfavorite.
      required: true
      advanced: false
      example: "1656510950.19548-ihtjj7"
      default: ""
      selector:
        text:
    favorite:
      name: Favorite
      description: >
        If the event should be favorited or unfavorited. Enable to favorite,
        disable to unfavorite.
      required: false
      advanced: false
      example: true
      default: true
      selector:
        boolean:

ptz:
  name: Control camera via PTZ
  description: >
    Pan / Tilt, Zoom, or move a camera to a preset
  target:
    entity:
      integration: frigate
      domain: camera
      device_class: camera
  fields:
    action:
      name: PTZ Service
      description: Type of PTZ action
      required: true
      advanced: false
      example: move
      default: move
      selector:
        select:
          options:
            - "move"
            - "preset"
            - "stop"
            - "zoom"
    argument:
      name: PTZ Action
      description: >
        left, right, up, down for move; in, out for zoom; name of preset
      required: false
      advanced: false
      example: down
      default: ""
      selector:
        text:
