Sonos Beam HDMI ARC TV power

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)

2 Likes

I’m guessing that no one got back to you on this? I’ve been trying for ages to get this to work without any luck.

Try the same and haven’t found a way yet. Does nobody have an idea?

I have same issue / question. Did anyone solve this?

I need this :slight_smile:, afraid it won’t work though… Nobody found anything similar? Maybe we could reverse engineer that to work with Sonos?

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.

1 Like

I’m just going to bump this as I’m in the same predicament. How is it that Alexa has access to send CEC command from an AMP but HA doesn’t.

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!