videoP2Proxy icon indicating copy to clipboard operation
videoP2Proxy copied to clipboard

A command to turn off the rtsp stream

Open sendorm opened this issue 6 years ago • 1 comments

I've created a shell command in HASS to turn on the stream.

shell_command: 
  camera_on: 'videop2proxy --ip 192.168.x.xx --token xxxxxxxxxxxxxxxxxxxxxxxxxxxx --rtsp 8554'

And have this in configuration:

camera:
  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://192.168.xx.xx:8554/

But I wouldn't want to run the camera constantly. Is there a way to turn off the stream?

sendorm avatar Oct 03 '18 18:10 sendorm

Currently I am using these two commands to turn the feed on an off by setting the camera to sleep mode:

miiocli device --ip 192.168.xx.xx --token xxxxxxxxxxxxxxxxxxxxxxxxx raw_command set_video '["off"]'
miiocli device --ip 192.168.xx.xx --token xxxxxxxxxxxxxxxxxxxxxxxxx raw_command set_video '["on"]'

sendorm avatar Oct 06 '18 21:10 sendorm