mtgeekman / Home_Assistant_NeoSmartBlinds

Adds NeoSmart Blinds support to Home-Assistant.
46 stars 14 forks source link

Unable to operate blinds since 2022-06-27 - Is there a max limit on the number of calls in a specific timeframe? #27

Closed karanvivekbhargava closed 2 years ago

karanvivekbhargava commented 2 years ago

I had recently added blinds connected via this component (working perfectly well) to node red. And I might've been calling the blinds at about 2 Hz or in 30 sec increments to keep closing. Now the blinds aren't working with home assistant calls even though I've removed the continuous calls from nodered.

karanvivekbhargava commented 2 years ago

Solved: I restarted my neo smart blinds hub and then rebooted home assistant and was able to get them to talk again. Thank you for the component!

gee-jay-bee commented 2 years ago

Just to say that I have observed similar behaviour where the hub can become overloaded and unresponsive. More regularly, I see that successive calls can be ignored but the hub recovers after a little while.

I have a branch in this repo that imposes a minimum interval between calls which works ok. I set it to 500ms which is apparently the min period. It does help. Interestingly, a developer working on the hub (active on discord) couldn't understand why it helps as much as it does! He hasn't been able to investigate yet

karanvivekbhargava commented 2 years ago

Thanks for sharing your experience @gee-jay-bee . This unresponsiveness has happened once again after I posted what worked for me. I’ll try out your branch next week once my family leaves after the long weekend.