howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

Add timeout for sending new power states #1

Closed janbuecker closed 5 years ago

janbuecker commented 5 years ago

Hey,

I've encountered an issue when grouping sockets (S26) or using automations on multiple sockets. It seems that only one socket gets toggled while all others stay at their state. Therefore I've added a small delay for sending the web socket messages to prevent any issues with multiple simultaneous requests.