Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PTZ with WebRTC-Camera preview #131

Open
mikigal opened this issue Dec 24, 2024 · 0 comments
Open

PTZ with WebRTC-Camera preview #131

mikigal opened this issue Dec 24, 2024 · 0 comments

Comments

@mikigal
Copy link

mikigal commented Dec 24, 2024

Version of the custom_component 1.0.15

I'm trying to get PTZ working with local stream based on WebRTC Camera integration (using go2rtc). I got PTZ layout, but it does nothing. I won't use preview from Imou API due to limited requests to API.
How can do I it? I'm sure imouapi can control this camera as I tested in in CLI mode.

What I did

type: grid
square: false
columns: 1
cards:
  - type: entities
    entities:
      - entity: sensor.przed_domem_status
        name: Stan
  - type: custom:webrtc-camera
    url: >-
      rtsp://admin:*censored*@10.10.10.21/cam/realmonitor?channel=1&subtype=00&authbasic=YWRtaW46YWRtaW4=
    muted: true
    intersection: 1
    ui: true
    device_id: *censored*
    ptz:
      service: imou_life.ptz_move
      device_id: *censored*
      data_left:
        device_id: *censored*
        duration: 100
        operation: LEFT
      data_right:
        device_id: *censored*
        duration: 100
        operation: RIGHT
      data_up:
        device_id: *censored*
        duration: 100
        operation: UP
      data_down:
        device_id: *censored*
        duration: 100
        operation: DOWN
      data_zoom_in:
        device_id: *censored*
        duration: 100
        operation: ZOOM_IN
      data_zoom_out:
        device_id: *censored*
        duration: 100
        operation: ZOOM_OUT

Debug log

There's no any information/errors in logs

preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant