Page 1 of 1

Lutron IP Gateway: Error sending IP command, resetting conne

PostPosted: Sun Nov 28, 2021 4:23 pm
by Ramias
Occasionally connection to the RA2 repeater drops. This shows in the log:

Lutron IP Gateway: Error sending IP command, resetting connection: 'int' object has no attribute 'sendall'

I did a Plugin/Query All Devices and got the above for every device.

Reloading the plugin resolves things. It then reoccurs within a few days for an unknown reason. Have not figured out how to reproduce this.

Has anybody else come across this?

Was set to "Warning" for plugin logging. Now set to Debug in case that helps.

Re: Lutron IP Gateway: Error sending IP command, resetting c

PostPosted: Sun Nov 28, 2021 4:33 pm
by rapamatic
I have that happen to. I think a bug in the reconnection code. I just set a schedule to restart the plug-in every 6 hours, which works pretty well but not ideal.

Re: Lutron IP Gateway: Error sending IP command, resetting c

PostPosted: Sun Nov 28, 2021 4:34 pm
by FlyingDiver
Yeah, I think it's a race condition between the reconnect code and other code trying to send to the repeater. One of these days....

Re: Lutron IP Gateway: Error sending IP command, resetting c

PostPosted: Sun Nov 28, 2021 10:50 pm
by rapamatic
I may have the time to poke around a bit while away for Christmas. I’m not smart enough to write a plug-in, but I know enough to play around with the code.

Longer term I wonder if the proper API in RR3 will reduce some of these headaches.

Re: Lutron IP Gateway: Error sending IP command, resetting c

PostPosted: Mon Nov 29, 2021 3:55 am
by FlyingDiver
rapamatic wrote:
Longer term I wonder if the proper API in RR3 will reduce some of these headaches.


As best I can tell, it's still socket based sending/receiving text. Just JSON instead of simple text. The new API is not public like the old one. And my initial reply from Lutron was "Thank you for reaching out. All API requests require a business and technical review." So I'm working on that.

Re: Lutron IP Gateway: Error sending IP command, resetting c

PostPosted: Mon Nov 29, 2021 7:59 am
by Ramias
FlyingDiver wrote:
As best I can tell, it's still socket based sending/receiving text. Just JSON instead of simple text. The new API is not public like the old one. And my initial reply from Lutron was "Thank you for reaching out. All API requests require a business and technical review." So I'm working on that.


Hopefully Lutron is smart enough to realize that plugin support for platforms like this is a requirement for me and many others before upgrading to RR3.