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

Trigger RTSP recording #118

Closed
adultano opened this issue Feb 9, 2022 · 4 comments
Closed

Trigger RTSP recording #118

adultano opened this issue Feb 9, 2022 · 4 comments
Labels
question Further information is requested

Comments

@adultano
Copy link

adultano commented Feb 9, 2022

Ask your question

I am using a zigbee contact sensor to trigger a rtsp recording (eufy cam2c). This only works if the camera is „active“ i.e. motion was detected. Otherwise the livestream is not active and ffmeg returns 404. my workaround so far is to turn rtsp off and on again with your adapter and then start recording. This of course results in a couple of seconds delay before the recording can start. Is there any leaner / more efficient ways to do this? The requirement is basically through a blocky script -> contact trigger -> record rtsp stream (or even better record to homebase i/o rtsp but this I think is impossible)

Thanks for sharing your thoughts here.

@adultano adultano added the question Further information is requested label Feb 9, 2022
@Palmke
Copy link
Contributor

Palmke commented Feb 10, 2022

I'm not really in need of this logic, but I know automations can trigger a recording.
Is it possible to intercept the message the homebase sends to the cameras in such a situation, maybe CMD_BATCH_RECORD? Replicating that message may trigger a recording.

@adultano
Copy link
Author

Yeah with Anker's motion sensors you can create an automation to trigger a recording. If this could be made available for other sensors or any type of iobroker trigger would be awesome.

@adultano
Copy link
Author

If anyone else is struggling, I found a workaround. In the eufy app you can create an automation for which you can use the alarm from homebase as trigger for a camera recording. I set this up and then used a script in iobroker to set homebase alarm = true and immediately false again. As trigger I use a zigbee contact sensor but can literally be any type of trigger in iobroker. Two things to note, i set the volume of the homebase to the lowest and put tape over the speaker at the bottom. Like this the alarm is barely audible. And second, you need to set video length to custom in powersettings. Otherwise it will only record 5 seconds since there might be no movement of the motion sensor. The recordings will be stored to the local memory of the homebase (or whatever default you have) thus enabling also 2k recordings. Hope this helps.

@bropat bropat closed this as completed Mar 14, 2022
@hvorragend
Copy link

Is there a chance to get another solution for this request?

I would like to start a record with my Home Assistant sensors.

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

No branches or pull requests

4 participants