I think there are too many ways the logic of binding to a button could be set up, for me to add an overall solution. However, here’s what I suggest:
- create a virtual switch to represent your device
- use rule machine to connect your button events and change the state of the virtual switch
- bind the virtual switch to other devices with Switch Bindings