roleoroleo / yi-hack_ha_integration

Home Assistant custom integration for Yi cameras: yi-hack-MStar, yi-hack-Allwinner, yi-hack-Allwinner-v2, yi-hack-v5 and sonoff-hack
GNU General Public License v3.0
205 stars 32 forks source link

Don't record temporarily #145

Closed pannal closed 3 weeks ago

pannal commented 5 months ago

Hey there,

I'm using the HA integration with two r30gb and am able to turn them on and off. However, as the PTZ doesn't work while the cameras are off, and I have them set to a "privacy orientation" normally, I need to use the PTZ to move them to the "surveillance" orientation after turning them on.

This leads to motion being detected and videos to be saved. Can this be circumvented? Can I turn recording/motion detection off while moving them with the PTZ service?

Thank you!

roleoroleo commented 5 months ago

The only way to turn off recording is killing the process mp4record. But it's not completely safe and requires time to restart. Probably is not a good idea.

pannal commented 5 months ago

Thank you. Is it possible to have PTZ working while the camera is set to off in HA? That would fix the issue as well.

roleoroleo commented 5 months ago

About mp4record there is a web service to handle start and stop: https://github.com/roleoroleo/yi-hack-Allwinner-v2/wiki/Web-services-description#service-start-and-stop

Thank you. Is it possible to have PTZ working while the camera is set to off in HA? That would fix the issue as well.

Which command do you use to move the cam? onvif? ptz service?

pannal commented 5 months ago

PTZ service

roleoroleo commented 4 months ago

It depends on the cam, but in general it's not possible. The cam doesn't reply to ptz command, neither remote nor local.

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.