Lutron IP Gateway: Error sending IP command, resetting conne

Posted on
Sun Nov 28, 2021 4:23 pm
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Lutron IP Gateway: Error sending IP command, resetting conne

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.

Posted on
Sun Nov 28, 2021 4:33 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

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

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.

Posted on
Sun Nov 28, 2021 4:34 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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

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....

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Nov 28, 2021 10:50 pm
rapamatic offline
Posts: 276
Joined: Aug 03, 2015
Location: Glencoe, IL

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

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.

Posted on
Mon Nov 29, 2021 3:55 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

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

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.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Mon Nov 29, 2021 7:59 am
Ramias offline
Posts: 272
Joined: Nov 24, 2015

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

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.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests