The button capability is needed to give webCoRE the ability to "press" the button. Without it, WC only sees the switch, and then will always receive both the on and off events. The trouble with this is that the on/off events happen so fast that ST may receive them in either order, at random. In WC, the second event will wait for 10s at a semaphore, delaying the actions. If it can subscribe to just the button, it'll only receive a single event.
Adding the button capability will let this DH act like a button within webCoRE.
The button capability is needed to give webCoRE the ability to "press" the button. Without it, WC only sees the switch, and then will always receive both the on and off events. The trouble with this is that the on/off events happen so fast that ST may receive them in either order, at random. In WC, the second event will wait for 10s at a semaphore, delaying the actions. If it can subscribe to just the button, it'll only receive a single event.
Adding the button capability will let this DH act like a button within webCoRE.