I have Sonos Beam with Alexa enabled. The Sonos beam can turn my TV on/off via its HDMI ARC connection.
I have Hass.io running on my Pi with the Sonos component installed. I see no way to write a script to turn my TV on/off via the Sonos Beam. Any creative ideas? (The HDMI CEC component doesn’t work, btw)
Thanks guys!
(PS, but the Alexa app I can add a “TV off” line item to one of my routines that turns the TV On/Off via the Beam. So I know it’s possible to program this. Just want to do it at the Hassio scripting level)
This is the key here; just need a little outside-the-box thinking to make everything play nice. I’ve used this same setup for other Alexa-controlled devices too.
In HA, set up a “dummy” switch entity and make sure it’s exposed to Alexa. Then, in your Alexa app, set up a routine such that “When switch.dummy_entity turns on; Power on TV” and vice versa for turning off.
Now, just turn that switch on and off through an automation or lovelace card and Alexa should control the TV accordingly.
I’d like to work out how to do this too. Wake on Lan works for my LG TV but not my 2017 Samsung. I need a way to switch on the TV through HA and thought I might be able to do this through the HDMI-CEC connection from the Sonos Beam 2, no luck though. Any ideas welcome!