OpenGarage › Forums › Comments, Suggestions, Requests › Request: SmartThings Integration › Reply To: Request: SmartThings Integration
lawrence_jeff
Great to hear – after thinking about this a bit – would this be more flexible if instead of sending refresh:true it sent the new status (door open, door close, etc)
That way you would have the option of either taking the updated status as is (and not rechecking) or you could always recheck exactly like you are today if you want
That would make things a bit more consistent with the other code and allow your app some additional flexibility.
Another thought – is the port specific to OG or is that generic – wondering if you had 2 OGs (in a 2 door setup) or you later wanted to use this for other custom devices if you need to be able to differentiate which device is asking the hub to do an update? IFTTT does this with a specific post endpoint but it could also be in the payload I guess
{[DeviceName]:refresh} for instance
- This reply was modified 6 years, 9 months ago by lawrence_jeff.