videoP2Proxy
videoP2Proxy copied to clipboard
A command to turn off the rtsp stream
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?
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"]'