Ptz caméra tp-link tapo C510w

oui , mais c’est pas bien de se moqué des vieux !! :rofl:
(plus que 4 pour la retraite !! :stuck_out_tongue:)

1 « J'aime »

@didier02100

mon code pour la carte frigate et une caméra reolink sous ONVIF. Ta les services utiliser pour les PTZ.

type: custom:frigate-card
cameras:
  - camera_entity: camera.reolink_e1_zoom_profile000_mainstream
    live_provider: image
  - camera_entity: camera.192_168_1_29
    live_provider: image
elements:
  - type: custom:frigate-card-menu-submenu
    icon: mdi:camera
    items:
      - title: Capture Reolink
        icon: mdi:camera
        tap_action:
          action: call-service
          service: camera.snapshot
          service_data:
            entity_id: camera.reolink_e1_zoom_profile000_mainstream
            filename: >-
              /media/Capture/Capture_Reolink_{{
              now().strftime("%d%m%y_%H%M") }}.jpg
      - title: Capture Tuya
        icon: mdi:camera
        tap_action:
          action: call-service
          service: camera.snapshot
          service_data:
            entity_id: camera.192_168_1_29
            filename: >-
              /media/Capture/Capture_Tuya_{{ now().strftime("%d%m%y_%H%M")
              }}.jpg
      - title: Recorder Reolink
        icon: mdi:video
        tap_action:
          action: call-service
          service: camera.record
          service_data:
            entity_id: camera.reolink_e1_zoom_profile000_mainstream
            duration: 10
            filename: >-
              /media/Capture/Recorder_Reolink_{{
              now().strftime("%d%m%y_%H%M") }}.mp4
      - title: Recorder Tuya
        icon: mdi:video
        tap_action:
          action: call-service
          service: camera.record
          service_data:
            entity_id: camera.192_168_1_29
            duration: 10
            filename: >-
              /media/Capture/Recorder_Tuya_{{ now().strftime("%d%m%y_%H%M")
              }}.mp4
  - type: custom:frigate-card-menu-icon
    icon: mdi:folder
    title: Dossier Capture
    tap_action:
      action: fire-dom-event
      browser_mod:
        service: browser_mod.popup
        data:
          right_button: Fermer
          right_button_action:
            service: browser_mod.close_popup
            data:
              browser_id: THIS
          browser_id: THIS
          size: fullscreen
          style: '--popup-border-radius: 10px;'
          content:
            type: custom:gallery-card
            title: Capture Caméra Reolink
            entities:
              - path: media-source://media_source/local/Capture/
            menu_alignment: top
            maximum_files: 30
            file_name_format: DDMMYY_HHmm
            caption_format: D/MM/YY HH:mm
            parsed_date_sort: true
  - type: custom:frigate-card-menu-submenu
    icon: mdi:menu
    items:
      - title: Autofocus
        entity: switch.reolink_e1_zoom_autofocus
        tap_action:
          action: toggle
      - title: Led
        entity: switch.reolink_e1_zoom_ir_lamp
        tap_action:
          action: toggle
  - type: custom:frigate-card-menu-state-icon
    entity: binary_sensor.reolink_e1_zoom_cell_motion_detection_2
    title: Caméra détection
    state_color: true
  - type: custom:frigate-card-menu-icon
    icon: mdi:wall
    title: Mur
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        entity_id: camera.reolink_e1_zoom_profile000_mainstream
        preset: '000'
        move_mode: GotoPreset
  - type: custom:frigate-card-menu-icon
    icon: mdi:image-filter-center-focus
    title: Centre
    tap_action:
      action: call-service
      service: onvif.ptz
      service_data:
        entity_id: camera.reolink_e1_zoom_profile000_mainstream
        preset: '001'
        move_mode: GotoPreset
  - type: custom:frigate-card-ptz
    orientation: vertical
    style:
      transform: none
      right: 5px
      top: 50px
    actions_left:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.reolink_e1_zoom_profile000_mainstream
          pan: LEFT
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_right:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.reolink_e1_zoom_profile000_mainstream
          pan: RIGHT
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_up:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.reolink_e1_zoom_profile000_mainstream
          tilt: UP
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_down:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.reolink_e1_zoom_profile000_mainstream
          tilt: DOWN
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_zoom_in:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.reolink_e1_zoom_profile000_mainstream
          zoom: ZOOM_IN
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_zoom_out:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.reolink_e1_zoom_profile000_mainstream
          zoom: ZOOM_OUT
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
menu:
  style: outside
  buttons:
    cameras:
      enabled: true
    image:
      enabled: true
  position: top
live:
  draggable: true
view:
  default: image
  camera_select: current
  timeout_seconds: 300
image:
  mode: camera
  refresh_seconds: 10
media_viewer:
  draggable: true
performance:
  style:
    border_radius: true```

image

1 « J'aime »

Cool !! elle bouge !!!
j’ai modifier speed et distance , ca aller trop doucement …

type: custom:frigate-card
cameras:
  - camera_entity: camera.tapo
elements:
  - type: custom:frigate-card-ptz
    orientation: vertical
    style:
      transform: none
      right: 5px
      top: 50px
    actions_left:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.tapo_mainstream
          pan: LEFT
          distance: 0.9
          speed: 0.9
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_right:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.tapo_mainstream
          pan: RIGHT
          distance: 0.9
          speed: 0.9
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_up:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.tapo_mainstream
          tilt: UP
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove
    actions_down:
      tap_action:
        action: call-service
        service: onvif.ptz
        service_data:
          entity_id: camera.tapo_mainstream
          tilt: DOWN
          distance: 0.1
          speed: 0.16
          continuous_duration: 0.5
          move_mode: ContinuousMove

1 « J'aime »

Bah voilà une bonne chose de faite :+1: :clinking_glasses:

Oh , que oui !!!
merci Krull56 , bien vus , avec onvif, et merci a WarCOzes pour l’exemple …

je checher à faire ce que tu m’avais dis …

.
Je verrais ce soir, j’ai jamais utilisé , faudrais que je m’y mette comme a linux et autre …
Plus j’avance, et plus je me rend compte qu’il me faudrait une 2eme vie pour tout comprendre …rofl.
.
.
ma caméra va se cassée la figure a force de la faire tournée . trop marrant rofl.

2 « J'aime »