bjpierron / SmartThings-Alexa

Apache License 2.0
44 stars 137 forks source link

The Simulated Alexa Button lacks button capability #3

Open steinauf85 opened 3 years ago

steinauf85 commented 3 years ago

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.