Change the active stream with a button card outside the WebRTC card?
Hi!
I have an entity using a button card which authorize me to turn on the sleep mode of my camera (Aqara G3) so i can stop the feed. But it won't go in that mode if someone is watching the stream from HA dashboard and there is now way to bypass this. So i need to stop the stream before turn on the sleep mode.
I have an idea but don't know how to implement it: I know i can change stream when clicking on the mode in the right corner of the card. So, if i need to stop the feed of my camera, i can do this:
streams:
- url: rstp://ip:11984/my-camera
- url: http://.../image.jpg # still image
Then clicking on the mode switches the stream to the still image. Then i have to click on the button card to turn on the sleep mode of the camera. But this is not an elegant solution. I need a 1-click action -> Lets say a click on the button card (instead of the mode from the webRTC card) switch the camera stream to the image, then it will turn on the camera sleep mode. So i need to controle the active stream with my button card. I'm wonder if it's possible with WebRTC card? Also i'm not sure if i can do it from the go2rtc API.
You can use some custom cards with support scripting from HACS. And write a condition depending on the state of some template sensor.
Please give your feedback on my feature request, which should solve this problem.: https://github.com/AlexxIT/WebRTC/issues/898