New sonoff CAM-PT2 camera

Has anyone tried this yet ? Seems crazy cheap. Can it be added locally so it wont access ewelink cloud or such ?

No mention of Onvif on the site or in the pdf manual. Only mentioned the Ewelink App.

I just found a youtube video where this was tested and youtuber said it has RTSP and ONVIF capability, so this wont be an issue. If they works as they should that is :slight_smile:
Oh, and same video shows how to add it to home assistant, butter smooth installation with rtsp.

1 Like

I purchased the Sonoff CAM PT2 because it was so inexpensive and I had a small surveillance job to do in my house. I wanted to monitor my internal staircase for human traffic.
It arrive in good condition and was pretty easy to install in eWeLink and HA. I was able to enable RTSP/ONVIF on the camera and it, after reloading ONVIF integration, it was visible and able to be used.

I have been able to write and automation that records 30secs of video if a human is detected to the /Media/ in HA but I only allow that to happen at night when there is minimal traffic so as not to put too many files on my HA SSD.

I purchased a 128GB Micro SD card with the camera and all the footage is recorded to that (oldest files are written over first) and not the cloud as I have not subscribed .

However there is one issue that is a lacking feature in that it does not have a Preset that you can designate as Home. I want to have an automation that returns the PT location to this preset after say 5 minutes of no human detection otherwise the camera position stays at the last human detection location.
The only way I can find to Go To presets is my using eWeLink and tapping on the preset.
This is a lacking feature in the camera.

If anyone has a suggestion or a work around I would love to hear it.

21/7/2025
Another thingI find annoying with this camera.
I don’t seem to be able to set the resolution to 1080p and it remain there. It defaults back to Auto.

1 Like

I received my camera a couple weeks ago. While I can confirm the easy setup, I also can confirm @rontaylor findings regarding the presets. Thats quite annoying.

I’m not using the camera directly in Home Assistant but with Scrypted currently. I tried the option to control the presets over scripts and automations within Scrypted but with no luck so far.

Also the camera seems to move to its default home position, away from my preset occasionally, so I have to go into the app and select my desired position preset at least once a day. If you have the “follow movement” option enabled, the camera also didn’t go back to the default position, but stays where it has seen the moving object last.

One major flaw that I discovered recently is, that the camera apparently does need to have a constant internet connection. Once I block the internet connection in my router for the camera, the onvif and rtsp streams are unreacheable. The LED starts flashing. According to their help documents this means:

The device exits the network configuration state after being offline, network exception, or failing to connect to the network.

I don’t know why it would need an internet connection in order to stream via onvif/rtsp locally. For something sensible like a camera feed a constant internet connection of the device is a no go for me.

EDIT: I’ve opened a support ticket regarding the preset issue and the internet connectivity. Once I hear from them I will update you :slight_smile:

1 Like

Good to hear you open a support ticket. I did raise one as well.
I also found this

If you scroll to about half way there is some yaml code that is given to use the Pan & Tilt

I can’t make head nor tail of it as I am not good with yaml.

Later on 22/7/2025 @11:37am
I managed to do what the above Sonoff Help document suggested and created a new dashboard as suggested. The code needed some editing to suit my camera and there are some code missing but I managed to get it working. I can now Pan & Tilt from HA but it’s slow and a bit clumsy.
The need to have the GOTO PRESET available would be much more desirable.
This is what it looks like.

If you go to developer tools → Actions I found this but it does not work on the Cam PT2 but does on my HIKVision cameras


I think the firmware is buggy to say the lease

1 Like

I did get a reply a couple of days ago:

Thanks for your email.

Regarding the issues you mentioned:

  • The camera occasionally moves away from my set preset, so I have to go into the app and reapply my preset there (most of the time at least once a day)
  • I can’t set/control presets through Scrypted
  • The camera can not be used without an internet connection

For your issues, here are the replies for you:

  1. Could you please describe in detail how the camera occasionally moves away from its preset position? Is the PTZ turned to a position, and then returned to the original position after a while?
  2. Scrypted setting/controlling preset positions is not supported yet.
  3. ONVIF/RTSP cannot be streamed locally. This issue will be optimized in the next firmware version, which is expected to be released in early August.

Looking forward to your reply.

I’m a bit confused by the part “ONVIF/RTSP cannot be streamed locally”. That’s the whole purpose of it, isn’t it? Lets see what the future firmware update “optimizes” in this regard…

I must be blind but I don’t see anything regarding PTZ in the help document except a small remark “PTZ control: Manual configuration via script is required.”
Can someone please explain how to make PTZ in HA work?

Contains everything i needed to make PT work in HA

Sonoff site is a mess. The link didn’t work for me and opened the main page of the help center from which I could open the guide. But it was a totally different guide: How to Integrate SONOFF CAM-PT2 into Home Assistant?

All this because the site automatically selected German language for me and there is no German version of the correct guide. Only after I changed manually to English and clicked again on the link from your post the correct guide was opened.

Good catch did not know that. But it is PT working now for you??

Yes, it works now. Thank you.

Preset does not work for me either. Does anyone know if there’s a plan to make it work?

I tried something like this:

action: onvif.ptz
data:
  preset: Escada # I tried numbers like 0 through 5 as well
  move_mode: GotoPreset
target:
  entity_id: camera.cam_ptz_sonoff_sala_mainstream

A firmware update to 1.0.7 is available. I installed it today and directly blocked the internet access for the camera in order to test if the offline streaming issue is resolved.

So far it looks good. 30 min in with no internet access and the ONVIF stream is still available. Before the update it was gone seconds after I blocked the internet access. I hope it will continue to work like this!

@ericmilaneze I don’t have high hopes, but maybe the new firmware helps with that as well?
But so far the response from the Sonoff support was, that it is not supported (yet)

2 Likes