Getting switch state in Entity Button Card

I’m almost positive there’s some kind of direct command you can send to change the state of an entity. Like I said, I’m not an expert, but I think it’s out there. The problem is that I think it’s a “coding” thing rather than an “interface” thing.

You may be able to rig something up using a binary sensor that you can set to on/off or 1/0… but I don’t have a lot of experience with 'em. Then there’s likely a way you can tie the sensor state to the state of your button.

You might also want to look into the custom button called button-card. It’s got more options than entity-button and might do what you need.

Good luck.