I’m new to HA and have managed to get most of my devices configured in the system and some basic cards functioning…Now, my goal with this post is to figure out how to build a button on a card that toggles between On and Off with a group of devices where I can’t track state.
There are 3 devices that I’d like to control as a group: TV, Xbox and Stereo.
I am controlling both my SamsungTV and Xbox through an iTach IR blaster, the stereo can be IP controlled directly. I can track state of the stereo but not TV or Xbox (that I’m aware of).
I’ve already created scripts for TV on/off and Xbox on/off using remote.send_command and they work fine. I’ve also created a script that turns on all three devices and another that turns them all off. So if I’m on the right path, from here I’d like to make a button that can toggle between all on and all off and that state is reflected in the button ui. (button changes color or words or image, whatever)
Seems to me I need to set the state of something for this group to ‘on’ for the button ui to key off of and vice versa for off.
I’ve researched a lot but can’t seem to pull all the pieces together cohesively. Thanks for your help!