So I thought I had stumbled onto an easy tv status fix using a chromecast device, but can’t seem to figure it out.
For my main TV I found the specific IR code to turn OFF the tv only. So when I run my “good bye” routine, if the tv is off it stays off, if it is on, it turns off. Exactly what I want.
I use a 2nd smaller TV, call it my monitor. That is where I have my cam live feeds and sometime stream to it via a chromecast. There is no dedicated OFF IR code, so same code turns tv on and tv off. But home assistant only knows the correct state if I use HA to turn on and off the tv.
I didn’t plan to integrate chromecast onto HA, but it found it itself, and with one or two clicks it integrated. I noticed when tv is off, chromecast is unavailable (it pulls the 5v from the USB from the TV). When TV is on, chromecast has a status of on or off.
When trying to set up automation, I am able to pull it up as a device and use the “status” to trigger an event, but the only status I have access to are on or off.
I am trying to set up an automation or script, that when the chromecast is “unavailable”, it would set the monitor status to “off” (chromecast is only available when monitor is on), and well when chromecast is available, for the monitor status to be “on”, even though the chromecast itself might be “off”, but “available/connected”
Is it possible? Pretty sure it logs the time the chromecast is “unavailable”, so there should be a way to access that to trigger an event no?
2 posts - 2 participants
Read full topic