Controlling Home-Assistant Entities with your Elgato Stream Deck.

Controlling Home-Assistant Entities with your Elgato Stream Deck.

Hi there. This is a really simple one from me, but useful all the same, particularly if you’re a gamer!

I own an Elgato Stream Deck and I love it. I stream when playing computer games and it’s perfect for switching scenes, muting, changing music tracks etc. I don’t need to continue, there are plenty of reviews online. Where it really steps up for me is the ability for me to add Home-Assistant control to it. This not only allows me to assign a hard button to switching something on or off, but it enables me to mix the physical control of lighting with application control. For instance I have assigned a macro on my streamdeck that loads up OBS studio, opens the chat window (restream.io – I only have one monitor), opens Steam, stops playing music on my system (so as to not get a DCMA takedown) and now turns on my streamlights so I’m ready to go. I literally choose the game, hit stream and we’re online!

Home-Assistant on my Stream Deck
Home-Assistant on my Stream Deck

You could go one step further. If you’re into RGB lighting, you could also have it send commands to change to a certain colour when you hit the ‘scene’ transition button. If you have any of Elgato’s stream lights, you will find that these are already controllable via the Stream Deck. You could easily include external lighting now too. I’m sure I’m only scratching the surface here with this.

Now on to the set up side. It’s dead easy. I have a variety of tuya based smart plugs that I have reflashed to Tasmota (currently running 8.4.0 as I write). Will this work with ESPhome or one of the other other open firmwares? I’m not sure, but I don’t see why not. As long as they are open to HTTP control it should be fine. Someone else can verify that though.

For example here is one i use to toggle on and off a light in my office.

http://192.168.2.54/cm?cmnd=Power%20Toggle

That is it. It’s all you need. This simple one liner allows me to toggle my tasmotized (is that even a verb?) Blitzwolf SHP5 on and off and control the light connected to it.

Home-Assistant Stream Deck Commands
Home-Assistant Stream Deck Commands

I chose the blitzwolf SHP5 because not only is it good for a simple wifi enabled power plug but it also has 2 USB ports that can can be controlled independently of the main power socket. To be clear USB1 and USB2 are either both on or both off, but it’s still cool to have additional control over them. You can read more about how I put these into Home-Assistant and set them up correctly to have the independent power control here. If you’re interested in getting some yourself, you can find them here (affiliate link).

 

If you’re interested to learn more about what you can do on the code side, see the full list of tasmota commands here:

Hopefully for those of you who own a Stream Deck you will find this useful. If you don’t and would consider picking one up, you can find one here on amazon (affiliate link):

 

Drop a comment below if you manage to come up with some cool idea or flow that incorporates this. I am sure someone far brighter than me will be able to adapt this to trigger more things within the Home-Assistant universe. I’d love to know more! If any of you are gamers, hit me up on Discord or Twitch!

Feel free to check out some of my most recent blog posts here.

Leave a Reply

Your email address will not be published. Required fields are marked *