Difficulty with Caséta setup

Posted on
Wed Jul 04, 2018 4:20 pm
eullman offline
Posts: 9
Joined: Dec 12, 2012

Difficulty with Caséta setup

Hello and happy Independence Day!

I have installed a Caseta Smart Bridge PRO and am running the Lutron RRA2/Caséta plugin v7.2.0 and Indigo server v7.1.1. I have set a static IP address for the Smart Bridge PRO, and I *think* I am configuring the plugin properly:

Image

However, I am getting an error. Here are the debug log details:

Code: Select all
Jul 4, 2018 at 2:54:43 PM
   Lutron RRA2/Caséta Debug       New logLevel = 10
   Lutron RRA2/Caséta Debug       closedPrefsConfigUi: Setting self.runstartup = False
   Reloading plugin "Lutron RRA2/Caséta 7.2.0"
   Stopping plugin "Lutron RRA2/Caséta 7.2.0" (pid 94748)
   Stopped plugin "Lutron RRA2/Caséta 7.2.0"
   Starting plugin "Lutron RRA2/Caséta 7.2.0" (pid 94788)
   Lutron RRA2/Caséta Debug       logLevel = 10
   Started plugin "Lutron RRA2/Caséta 7.2.0"
   Lutron RRA2/Caséta             Starting up Lutron
   Lutron RRA2/Caséta             No linked Devices
   Lutron RRA2/Caséta             Running ipStartup
   Lutron RRA2/Caséta             Connecting via IP to 192.168.112.10:23
   Lutron RRA2/Caséta Error       Error in plugin execution startup:

Traceback (most recent call last):
  File "plugin.py", line 146, in startup
  File "plugin.py", line 724, in ipStartup
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/telnetlib.py", line 211, in __init__
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/telnetlib.py", line 227, in open
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 557, in create_connection
gaierror: [Errno 8] nodename nor servname provided, or not known


I am able to telnet into the bridge and see commands being sent/received:

Image

I hope it's obvious what I'm doing wrong. Any help is greatly appreciated!

All my best,
Eric

Posted on
Wed Jul 04, 2018 4:28 pm
FlyingDiver offline
Posts: 2403
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Difficulty with Caséta setup

Take the port number (":23") out. You're only supplying the IP address.

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

Posted on
Wed Jul 04, 2018 5:04 pm
eullman offline
Posts: 9
Joined: Dec 12, 2012

Re: Difficulty with Caséta setup

Yep. That totally did it. Thank you.

It now seems that things get stuck adding devices. Do I just need to let it run for a while? I've tried a few different options in the Create Devices dialog:

Code: Select all
Jul 4, 2018 at 3:49:50 PM
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = None
   Lutron RRA2/Caséta             Caseta Device 'Smart Bridge 2' (1), Buttons = 100
   Lutron RRA2/Caséta Debug       Skipping Smart Bridge button creation
   Lutron RRA2/Caséta             Caseta Zone 'Main Lights' (2), Area = Kitchen

Jul 4, 2018 at 3:51:08 PM
   Lutron RRA2/Caséta Warning     Unable to create devices, process already running.

Jul 4, 2018 at 3:55:04 PM
   Reloading plugin "Lutron RRA2/Caséta 7.2.0"
   Stopping plugin "Lutron RRA2/Caséta 7.2.0" (pid 95063)
   Lutron RRA2/Caséta             Shutting down Lutron
   Stopped plugin "Lutron RRA2/Caséta 7.2.0"
   Starting plugin "Lutron RRA2/Caséta 7.2.0" (pid 95124)
   Lutron RRA2/Caséta Debug       logLevel = 10
   Started plugin "Lutron RRA2/Caséta 7.2.0"
   Lutron RRA2/Caséta             Starting up Lutron
   Lutron RRA2/Caséta             No linked Devices
   Lutron RRA2/Caséta             Running ipStartup
   Lutron RRA2/Caséta             Connecting via IP to 192.168.112.10
   Lutron RRA2/Caséta Debug       self.connIP.read: login:
   Lutron RRA2/Caséta Debug       Sending username.
   Lutron RRA2/Caséta Debug       self.connIP.read: password:
   Lutron RRA2/Caséta Debug       Sending password.
   Lutron RRA2/Caséta Debug       End of connection process.
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = Type
   Lutron RRA2/Caséta             Caseta Device 'Smart Bridge 2' (1), Buttons = 100


This is what my Lutron Integration Report looks like:

Code: Select all
{
 "LIPIdList" : {
   "Devices" : [
     {
       "ID" : 1,
       "Name" : "Smart Bridge 2",
       "Buttons" : [
         {
           "Name" : "Arriving Home",
           "Number" : 1
         },
         {
           "Name" : "Leaving Home",
           "Number" : 2
         },
         {
           "Name" : "Emergency",
           "Number" : 3
         },
         {
           "Name" : "Button 4",
           "Number" : 4
         },
         {
           "Name" : "Button 5",
           "Number" : 5
         },
         {
           "Name" : "Button 6",
           "Number" : 6
         },
         {
           "Name" : "Button 7",
           "Number" : 7
         },
         {
           "Name" : "Button 8",
           "Number" : 8
         },
         {
           "Name" : "Button 9",
           "Number" : 9
         },
         {
           "Name" : "Button 10",
           "Number" : 10
         },
         {
           "Name" : "Button 11",
           "Number" : 11
         },
         {
           "Name" : "Button 12",
           "Number" : 12
         },
         {
           "Name" : "Button 13",
           "Number" : 13
         },
         {
           "Name" : "Button 14",
           "Number" : 14
         },
         {
           "Name" : "Button 15",
           "Number" : 15
         },
         {
           "Name" : "Button 16",
           "Number" : 16
         },
         {
           "Name" : "Button 17",
           "Number" : 17
         },
         {
           "Name" : "Button 18",
           "Number" : 18
         },
         {
           "Name" : "Button 19",
           "Number" : 19
         },
         {
           "Name" : "Button 20",
           "Number" : 20
         },
         {
           "Name" : "Button 21",
           "Number" : 21
         },
         {
           "Name" : "Button 22",
           "Number" : 22
         },
         {
           "Name" : "Button 23",
           "Number" : 23
         },
         {
           "Name" : "Button 24",
           "Number" : 24
         },
         {
           "Name" : "Button 25",
           "Number" : 25
         },
         {
           "Name" : "Button 26",
           "Number" : 26
         },
         {
           "Name" : "Button 27",
           "Number" : 27
         },
         {
           "Name" : "Button 28",
           "Number" : 28
         },
         {
           "Name" : "Button 29",
           "Number" : 29
         },
         {
           "Name" : "Button 30",
           "Number" : 30
         },
         {
           "Name" : "Button 31",
           "Number" : 31
         },
         {
           "Name" : "Button 32",
           "Number" : 32
         },
         {
           "Name" : "Button 33",
           "Number" : 33
         },
         {
           "Name" : "Button 34",
           "Number" : 34
         },
         {
           "Name" : "Button 35",
           "Number" : 35
         },
         {
           "Name" : "Button 36",
           "Number" : 36
         },
         {
           "Name" : "Button 37",
           "Number" : 37
         },
         {
           "Name" : "Button 38",
           "Number" : 38
         },
         {
           "Name" : "Button 39",
           "Number" : 39
         },
         {
           "Name" : "Button 40",
           "Number" : 40
         },
         {
           "Name" : "Button 41",
           "Number" : 41
         },
         {
           "Name" : "Button 42",
           "Number" : 42
         },
         {
           "Name" : "Button 43",
           "Number" : 43
         },
         {
           "Name" : "Button 44",
           "Number" : 44
         },
         {
           "Name" : "Button 45",
           "Number" : 45
         },
         {
           "Name" : "Button 46",
           "Number" : 46
         },
         {
           "Name" : "Button 47",
           "Number" : 47
         },
         {
           "Name" : "Button 48",
           "Number" : 48
         },
         {
           "Name" : "Button 49",
           "Number" : 49
         },
         {
           "Name" : "Button 50",
           "Number" : 50
         },
         {
           "Name" : "Button 51",
           "Number" : 51
         },
         {
           "Name" : "Button 52",
           "Number" : 52
         },
         {
           "Name" : "Button 53",
           "Number" : 53
         },
         {
           "Name" : "Button 54",
           "Number" : 54
         },
         {
           "Name" : "Button 55",
           "Number" : 55
         },
         {
           "Name" : "Button 56",
           "Number" : 56
         },
         {
           "Name" : "Button 57",
           "Number" : 57
         },
         {
           "Name" : "Button 58",
           "Number" : 58
         },
         {
           "Name" : "Button 59",
           "Number" : 59
         },
         {
           "Name" : "Button 60",
           "Number" : 60
         },
         {
           "Name" : "Button 61",
           "Number" : 61
         },
         {
           "Name" : "Button 62",
           "Number" : 62
         },
         {
           "Name" : "Button 63",
           "Number" : 63
         },
         {
           "Name" : "Button 64",
           "Number" : 64
         },
         {
           "Name" : "Button 65",
           "Number" : 65
         },
         {
           "Name" : "Button 66",
           "Number" : 66
         },
         {
           "Name" : "Button 67",
           "Number" : 67
         },
         {
           "Name" : "Button 68",
           "Number" : 68
         },
         {
           "Name" : "Button 69",
           "Number" : 69
         },
         {
           "Name" : "Button 70",
           "Number" : 70
         },
         {
           "Name" : "Button 71",
           "Number" : 71
         },
         {
           "Name" : "Button 72",
           "Number" : 72
         },
         {
           "Name" : "Button 73",
           "Number" : 73
         },
         {
           "Name" : "Button 74",
           "Number" : 74
         },
         {
           "Name" : "Button 75",
           "Number" : 75
         },
         {
           "Name" : "Button 76",
           "Number" : 76
         },
         {
           "Name" : "Button 77",
           "Number" : 77
         },
         {
           "Name" : "Button 78",
           "Number" : 78
         },
         {
           "Name" : "Button 79",
           "Number" : 79
         },
         {
           "Name" : "Button 80",
           "Number" : 80
         },
         {
           "Name" : "Button 81",
           "Number" : 81
         },
         {
           "Name" : "Button 82",
           "Number" : 82
         },
         {
           "Name" : "Button 83",
           "Number" : 83
         },
         {
           "Name" : "Button 84",
           "Number" : 84
         },
         {
           "Name" : "Button 85",
           "Number" : 85
         },
         {
           "Name" : "Button 86",
           "Number" : 86
         },
         {
           "Name" : "Button 87",
           "Number" : 87
         },
         {
           "Name" : "Button 88",
           "Number" : 88
         },
         {
           "Name" : "Button 89",
           "Number" : 89
         },
         {
           "Name" : "Button 90",
           "Number" : 90
         },
         {
           "Name" : "Button 91",
           "Number" : 91
         },
         {
           "Name" : "Button 92",
           "Number" : 92
         },
         {
           "Name" : "Button 93",
           "Number" : 93
         },
         {
           "Name" : "Button 94",
           "Number" : 94
         },
         {
           "Name" : "Button 95",
           "Number" : 95
         },
         {
           "Name" : "Button 96",
           "Number" : 96
         },
         {
           "Name" : "Button 97",
           "Number" : 97
         },
         {
           "Name" : "Button 98",
           "Number" : 98
         },
         {
           "Name" : "Button 99",
           "Number" : 99
         },
         {
           "Name" : "Button 100",
           "Number" : 100
         }
       ]
     }
   ],
   "Zones" : [
     {
       "ID" : 2,
       "Name" : "Main Lights",
       "Area" : {
         "Name" : "Kitchen"
       }
     },
     {
       "ID" : 3,
       "Name" : "Under Cabinet",
       "Area" : {
         "Name" : "Kitchen"
       }
     },
     {
       "ID" : 4,
       "Name" : "Island Pendants",
       "Area" : {
         "Name" : "Kitchen"
       }
     },
     {
       "ID" : 5,
       "Name" : "Pendants",
       "Area" : {
         "Name" : "Dining Room"
       }
     }
   ]
 }
}


Thanks again!

ERic

Posted on
Wed Jul 04, 2018 6:01 pm
FlyingDiver offline
Posts: 2403
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Difficulty with Caséta setup

Looks like it got stuck somehow. Restart the plugin and try again.

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

Posted on
Fri Jul 06, 2018 5:51 pm
eullman offline
Posts: 9
Joined: Dec 12, 2012

Re: Difficulty with Caséta setup

Thanks for the help, Joe, especially on a holiday.

I had already restarted the plugin a couple times before sending that log detail. Since then, I've rebooted the bridge and the Mac running Indigo, but it still gets stuck trying to add devices, and if I try to run it again without restarting the plugin, I get the message that the process is still running.:

Code: Select all
Jul 6, 2018 at 4:40:51 PM
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = None
   Lutron RRA2/Caséta             Caseta Device 'Smart Bridge 2' (1), Buttons = 100
   Lutron RRA2/Caséta Debug       Skipping Smart Bridge button creation
   Lutron RRA2/Caséta             Caseta Zone 'Main Lights' (2), Area = Kitchen

Jul 6, 2018 at 4:49:42 PM
   Lutron RRA2/Caséta Warning     Unable to create devices, process already running.


Image

Any thoughts?

Thanks a bunch!

Eric

Posted on
Fri Jul 06, 2018 5:58 pm
FlyingDiver offline
Posts: 2403
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Difficulty with Caséta setup

Set the plugin to detailed debug logging and restart it, then try the import again. Maybe there will be something useful then.

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

Posted on
Sun Jul 08, 2018 9:33 am
eullman offline
Posts: 9
Joined: Dec 12, 2012

Re: Difficulty with Caséta setup

I upped the debug logging, reloaded the plugin, kicked off the auto-create-devices process and let it run for a day. I searched through the log, and I didn't see anything helpful in the log. I tried running the auto-create-devices process again this morning, and I got the "Unable to create devices, process already running" message in the log.

I ran a fresh reload > auto-create-devices process and turned on one of the lights from the Lutron iOS app to generate this fresh log snippet:

Code: Select all
Jul 8, 2018 at 7:55:34 AM
   Enabling plugin "Lutron RRA2/Caséta 7.2.0"
   Starting plugin "Lutron RRA2/Caséta 7.2.0" (pid 16569)
   Lutron RRA2/Caséta Debug       logLevel = 5
   Started plugin "Lutron RRA2/Caséta 7.2.0"
   Lutron RRA2/Caséta             Starting up Lutron
   Lutron RRA2/Caséta             No linked Devices
   Lutron RRA2/Caséta             Running ipStartup
   Lutron RRA2/Caséta             Connecting via IP to 192.168.112.10
   Lutron RRA2/Caséta Debug       self.connIP.read: login:
   Lutron RRA2/Caséta Debug       Sending username.
   Lutron RRA2/Caséta Debug       self.connIP.read: password:
   Lutron RRA2/Caséta Debug       Sending password.
   Lutron RRA2/Caséta Debug       End of connection process.
   Lutron RRA2/Caséta Threaddebug Command prompt received. Device is ready.

Jul 8, 2018 at 7:56:04 AM
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = None
   Lutron RRA2/Caséta             Caseta Device 'Smart Bridge 2' (1), Buttons = 100
   Lutron RRA2/Caséta Debug       Skipping Smart Bridge button creation
   Lutron RRA2/Caséta             Caseta Zone 'Main Lights' (2), Area = Kitchen

Jul 8, 2018 at 8:02:54 AM
   Lutron RRA2/Caséta Threaddebug Received an Output message: ~OUTPUT,3,1,9.00
   Lutron RRA2/Caséta Threaddebug Received an Output message: ~OUTPUT,3,1,24.00
   Lutron RRA2/Caséta Threaddebug Received an Output message: ~OUTPUT,3,1,28.00


I am able to add devices manually and control them without difficulty:

Code: Select all
Jul 8, 2018 at 8:20:44 AM
   Lutron RRA2/Caséta Debug       validateDeviceConfigUi: typeId = ra2Dimmer, devId = 572861335

Jul 8, 2018 at 8:21:12 AM
   Lutron RRA2/Caséta Debug       Sending network command:  ?OUTPUT,2,1,
   Lutron RRA2/Caséta Debug       actionControlDimmerRelay sent: "Kitchen Main Lights" False ?OUTPUT,2,1,
   Lutron RRA2/Caséta Threaddebug Received an Output message: ~OUTPUT,2,1,0.00
   Lutron RRA2/Caséta Debug       Received: Dimmer new device level set to 0.0
   Lutron RRA2/Caséta Threaddebug Command prompt received. Device is ready.


I'm good to go with manually-added devices. If there's any way I can help solve this issue, I'm happy to do so. Just let me know.

I also use your Harmony and MyQ plugins, and until working with the Lutron plugin, I didn't realize they were all yours. PayPal thanks sent!

Best,
Eric

Posted on
Sun Jul 08, 2018 9:41 am
FlyingDiver offline
Posts: 2403
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Difficulty with Caséta setup

Something must have broken with the Caseta input method. I'll do some testing here and see if I can figure it out.

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

Posted on
Sun Jul 08, 2018 9:56 am
FlyingDiver offline
Posts: 2403
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Difficulty with Caséta setup

Can you try one thing quick? Restart the plugin, open the dialog to create the devices like you've been doing, but before you hit the create button, change the "Group New Devices" popup to "Location", then back to "Device Type". Then hit "create".

When I do the test, my log file says:

Code: Select all
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = Type


Yours says:

Code: Select all
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = None


I think that's causing the error, but I'm not sure why yours isn't defaulting to "Type" correctly.

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

Posted on
Sun Jul 08, 2018 10:08 am
eullman offline
Posts: 9
Joined: Dec 12, 2012

Re: Difficulty with Caséta setup

Success:

Code: Select all
Jul 8, 2018 at 9:06:16 AM
   Lutron RRA2/Caséta             Creating Devices from JSON data, Grouping = Type
   Lutron RRA2/Caséta             Caseta Device 'Smart Bridge 2' (1), Buttons = 100
   Lutron RRA2/Caséta Debug       Skipping Smart Bridge button creation
   Lutron RRA2/Caséta             Caseta Zone 'Main Lights' (2), Area = Kitchen
   Lutron RRA2/Caséta Debug       Creating Device Folder: 'Lutron Dimmers'
   Lutron RRA2/Caséta             Creating ra2Dimmer device: 'Kitchen - Main Lights (2)' (2) in 'Lutron Dimmers'
   Lutron RRA2/Caséta             Caseta Zone 'Under Cabinet' (3), Area = Kitchen
   Lutron RRA2/Caséta             Creating ra2Dimmer device: 'Kitchen - Under Cabinet (3)' (3) in 'Lutron Dimmers'
   Lutron RRA2/Caséta             Caseta Zone 'Island Pendants' (4), Area = Kitchen
   Lutron RRA2/Caséta             Creating ra2Dimmer device: 'Kitchen - Island Pendants (4)' (4) in 'Lutron Dimmers'
   Lutron RRA2/Caséta             Caseta Zone 'Pendants' (5), Area = Dining Room
   Lutron RRA2/Caséta             Creating ra2Dimmer device: 'Dining Room - Pendants (5)' (5) in 'Lutron Dimmers'
   Lutron RRA2/Caséta             Creating Devices done.


If it helps: I had been selecting "No Folders" before running the script, and I think I selected "Device Location" for at least one attempt in the past.

Posted on
Sun Jul 08, 2018 10:11 am
FlyingDiver offline
Posts: 2403
Joined: Jun 07, 2014
Location: Cape Coral, FL

Re: Difficulty with Caséta setup

Ok, I'll do some more testing with those other modes. Might be a bug or two in there.

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

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest