PTZ YCC365 Cameras (Pan and Tilt)

After many turns to integrate my Chinese cameras that work in the YCC365 app, I have developed a component to be able to use the pan and tilt function of my cameras in Home Assistant.

By creating a mjpeg camera in the usual way, a card can be used to display the pan and tilt controls on the camera:

tarjeta

You can see the project here:
https://github.com/fjramirez1987/PTZ-YCC365

6 Likes

Nice work! I’ll give it a try. I have a Digoo ZXC40 camera running. I consult images in both Synology Surveillance station and in my Home Assistant.
PTZ doesn’t work in Synology for this camera (perhaps because it’s not 100% compliant to ONVIF standard), so this would be a great solution to make PTZ work in my Home assistant.
I’ll give more feedback after testing.

i have synology and ZXC40 camera, i can not connect, what is username and password for camera and port ? I am trying this for months i can not find a solution

@kgerakopoulos, It’s a bit off-topic, so I’ll keep it short.
To access the Digoo ZXC40 image in Synology:

When adding a new camera in Surveillance station, select:

  • Brand: [User Defined]
  • Type: Streaming - RTSP

Then enter following RTSP address:

rtsp://admin:dg20160404@[camera IP address]:554/0/av0

This accesses the HD stream with audio.
As you can deduce, the admin password for the camera is ‘dg20160404’.

Great stuff! Have you managed to control the LEDs and alarm on these?

I’m not sorry

I have the camera up and running in MotionEye. In which file do I enter the configuration you posted on github? configuration.yaml?

Thanks.

 - platform: ffmpeg
   input: rtsp://192.168.X.X:554/user=admin_password=123456_channel=1_stream=0.sdp
   name: Chinorra

Thanks a lot @fjramirez, this works great with my new PTZ YCC365 camera.

Great job!

Strange but I can not add my camera as per you instruction in github:

  1. what type of data is this, there is no such element in the home assistant lovelace:

type : picture-elements

  1. Then followed by this:

"elements :

  • type : icon
    icon : ’ mdi: arr…"

there is no such thing in HA - elements, but entities

what version of HA you using?

Update: Spacing was wrong!

here is fixed one:

type: picture-elements
title: Garden PTZ Cam 01
camera_image: camera.garden_ptz01_camera
elements:
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_left
      service_data:
        host: 192.168.1.18
    entity: camera.garden_ptz01_camera
    icon: 'mdi:arrow-left-drop-circle'
    style:
      bottom: 45%
      left: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_right
      service_data:
        host: 192.168.1.18
    entity: camera.garden_ptz01_camera
    icon: 'mdi:arrow-right-drop-circle'
    style:
      bottom: 45%
      right: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_up
      service_data:
        host: 192.168.1.18
    entity: camera.garden_ptz01_camera
    icon: 'mdi:arrow-up-drop-circle'
    style:
      top: 10%
      left: 46%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: call-service
      service: ptz_camera.move_down
      service_data:
        host: 192.168.1.18
    entity: camera.garden_ptz01_camera
    icon: 'mdi:arrow-down-drop-circle'
    style:
      bottom: 10%
      left: 46%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '
  - type: state-icon
    tap_action:
      action: more-info
    entity: camera.garden_ptz01_camera
    icon: 'mdi:arrow-expand-all'
    style:
      top: 5%
      right: 5%
      color: white
      opacity: 0.5
      transform: ' scale (1.5, 1.5) '

Its amazing, THANK you a lot for you job. It was working at first glance :slight_smile:

What about HACS integration?

Thanks. Yes, soon I will try to add it to HACS

@fjramirez i Have a YCC365 camera but where do you get the IP from? In the app i only have the mac adress

Has anyone by any chance done the integration of one of these cameras in frigate? I have managed to integrate the image but the pan/tilt options give me an error in the configuration

Could someone tell me if this system is still working? I have followed the instructions and I have created everything: I see the camera, I have created the card with the indicators, but when I put the instruction ptz_camera: it gives me an error. I have been told that since the end of the year it stopped working; Can you tell me if this is the case and if there is any other solution?

hola! me podrian decir como agrego este modelo de camara, porque sigo las instrucciones y no logro hacerlo. gracias