WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

[Feature request] PTZ for Eufy Indoor Cam Pan&Tilt

Open seygi opened this issue 3 years ago • 3 comments

Please, add on our wiki

Example how to configure PTZ for EUFY cam

 ptz:
        opacity: 0.4
        service: eufy_security.send_message
        data_left:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410XXXXX",
              "direction": 1
            }
        data_right:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410XXXXX",
              "direction": 2
            }
        data_up:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410XXXXX",
              "direction": 3
            }
        data_down:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410XXXXX",
              "direction": 4
            }

Override 'T8410XXXXX' to your cam serial number

seygi avatar Dec 17 '21 00:12 seygi

@seygi , can you please create a request on eufy_security repository so i can simply these by direct commands?

fuatakgun avatar Dec 18 '21 12:12 fuatakgun

Hello. I hope you’re doing well @AlexxIT @fuatakgun @seygi I done that but I get the following error:

Screenshot 2022-09-12 at 7 09 34 PM

My yaml is this

      type: custom:webrtc-camera
      url: rtsp://V..Q:[email protected]/live0
      background: false
      muted: false
      ptz:
        opacity: 0.4
        service: eufy_security.send_message
        data_left:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410.....D5",
              "direction": 1
            }
        data_right:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410.....D5",
              "direction": 2
            }
        data_up:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410.....D5",
              "direction": 3
            }
        data_down:
          message: |-
            {
              "messageId": "cmd Pan And Tilt Down", 
              "command": "device.pan_and_tilt",
              "serialNumber": "T8410.....D5",
              "direction": 4
            }

Can you please assist? Thanks

Ra7t0r avatar Sep 12 '22 16:09 Ra7t0r

Please get latest version of integration, i introduced easy to use services rather than send_message command.

fuatakgun avatar Sep 12 '22 16:09 fuatakgun

Thanks. I've added it to the wiki

AlexxIT avatar Jan 02 '23 12:01 AlexxIT