Turn Off Devices

Here you are welcome to post Cast feature requests
Post Reply
kramden88
Posts: 2
Joined: Sat Oct 21, 2023 1:13 pm

Turn Off Devices

Post by kramden88 »

This might not be supported in the protocol, but it would be great if there were a command to turn off the TV's.
RobLatour
Site Admin
Posts: 1016
Joined: Mon Feb 19, 2018 11:43 am

Re: Turn Off Devices

Post by RobLatour »

Casting is about sending a media stream to a device, it won't be able to turn it on or off.

As an alternative, myself I had at one point built an esp32 based IR controller that acted as a remote. I then used Push2Run to trigger an 'api' like command via curl to change the cannels / turn the tv on or off. It was however, in my mind, overly complicated when things went wrong, for example the esp32 lost its wifi connection, so I just ended up reaching for the remote most of the time :-)

Another solution, would be just to connect a voice controlled power plug to the tv, but I'm not sure if that's great for the TV or not - and of course would require TV boot times on startup
smay_lee
Posts: 6
Joined: Sun Mar 28, 2021 12:00 pm

Re: Turn Off Devices

Post by smay_lee »

I'm using Broadlink RM3 mini infrared universal remote control in bedroom and RM Pro in living room (because it uses RF too, needed for my automatic curtains). Using for years now and it works perfectly with Push2run.

And with Assistant Computer Control and IFTTT, I can with one command turn off TV, PC, lights etc.

https://www.youtube.com/watch?v=YY-5h2TYQNo

https://assistantcomputercontrol.com/
Post Reply