pychromecast
pychromecast copied to clipboard
Detect Chromecast with Google TV on/off
Currently pychromecast seems to return off no matter if the chromecast is actually off or on the home screen. (sometimes it seems to consistently loose connection, go to 'unavailable' when turning it on). And switches to 'playing' when entering an app.
Is it possible to detect the on/off state? The Google Home app doesn't seem to show any difference, so not sure if it's reported via the API at all.
In a similar vein.. is it possible to expose more attributes in the off state? currently only friendly name and supported features are shown. It would be super useful if say, device connected or loadevent has occurred to use as a trigger in automations to get around netflix etc blocking idle states.
I have my chromecast ultra hooked up with constant power via hdmi to my tv, while my tv is off I can connect netflix to my chromecast and start a show, it will however sit on 0 seconds playing and the HA state remains as Off, It would be handy if they brought back idle like YouTube, however that seems unlikely. So It would be great if there was a "entity(device) has connected to chromecast" attribute that could be used to trigger a TV(non cec) turn on trigger while in the off state.
HDMI true may be another option? that should be true only while the TV is on and false if it was off..
As a bump.. The only media streaming app I have which changes to "Idle" is youtube, while my TV is off. Most other streaming apps prevent moving to Idle as a means of HDMI input security check I think. So I can Connect to a device to cast and even start an episode or movie playing but the status will remain at "off" until I turn my TV on manually.
Is there a possibility to expose that a device has connected to a chromecast device?