Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Lutron RadioRa2

Questions and comments specific to a particular plugin should go here.
psted
Posts: 2
Joined: Wed Apr 21, 2010 3:11 am

Re: Lutron RadioRa2

Post by psted »

Thanks for getting back to me Fiasco.

Yes I get respsonses from the terminal software. If I change the light level I get '~OUTPUT,8,1,46.66' for instance.

If I then send '#OUTPUT,8,1,100', I get just a 'CRLF GNET>' and the light does nothing.

If I send '#OUTPUT,8,5' to try and flash the light, I get:

#ERROR,3,invalid action
USAGE: #OUTPUT,<ID>,<action>,...
#OUTPUT requires action(1-7)
1 = Set Level/Position
GNET>

It seems to me that either the software in the main repeater needs updating or parts of it are locked. Is any of this familiar to you?

Thanks
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: Lutron RadioRa2

Post by Fiasco »

What are you using as your telnet client?


CRLF is Carriage Return / Line Feed which tells me that your terminal client isn't handling those characters correctly.

In Windows,
Hit Start,
Run,
type
CMD
hit enter
type in the command line box that appears
telnet xxx.xxx.xxx.xxx (where xxxxx is your IP address of your main repeater)
hit enter
enter your login information

If you have Skype (free) PM me and I'll send you my username and I can guide you through via chat.
User avatar
Fiasco
Plugin Developer
Posts: 222
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: Lutron RadioRa2

Post by Fiasco »

In the following code within the RadioRa plugin

Code: Select all

            if devicetype == 'maestro':
               group = self.AddGroup('RadioRa2 Maestro Dimmer/Switch - ' + deviceid + ' ' + devicelocation )
               for className, descr, act, pre in MAESTRO_DEVICE_ACTIONS:

                   print pre + 'OUTPUT,' + deviceid + ',' + act                
                   
                   clsAttributes = dict(
                   name=descr + ' ' + deviceid,
                   action=act,
                   prefix=pre,
                   deviceid=deviceid,
                   devicetype=devicetype,
                   devicelocation=devicelocation,
                   command = pre + 'OUTPUT,' + deviceid + ',' + act
                   )
                   if ( className == "SETZONELEVEL" ):
                      cls = ClassType(className, (MaestroAction,), clsAttributes)
                   else:
                      cls = ClassType(className, (NvAction,), clsAttributes)
                   group.AddAction(cls)    
This is iterated through to build the command list for RA.

The command assigned is in the print statement and I see these iterated through correctly when I add the plugin and it creates the command list.

However, the name of the function always has the first deviceID that is parsed (name = descr + " " + deviceid) and the command that is ultimately called has the deviceid of the last deviceid parsed.

the device ID is always correct in the group name What am I doing wrong?
sfrederick
Posts: 1
Joined: Fri Apr 08, 2011 11:44 am

Re: Lutron RadioRa2

Post by sfrederick »

Fiasco I sent you a PM on AVS I was trying to get some info on your plugin and a ra2 installation..
aes
Posts: 1
Joined: Sun Apr 10, 2011 9:39 pm

Re: Lutron RadioRa2

Post by aes »

Fiasco-

Thank you for this contribution, I've been having fun playing with this on my new RR2 system- I appreciate having so much already implemented to work with. I have found an issue I am having trouble solving, however, and wanted to first ask if you've updated this since your last post before I get into the details.

Thanks!
Aes
Killedbyalbany
Posts: 7
Joined: Thu Apr 29, 2010 2:36 pm

Re: Lutron RadioRa2

Post by Killedbyalbany »

I'm having some major troubles with integrating EG and RA2. When I use this plugin, I'm able to connect, and maybe send or monitor a command or two, but always end up getting a "connection lost" error, followed by a "bad login". Did Lutron maybe make a big change to their firmware since this plugin was written?

FWIW, when I telnet into the repeater, everything works perfectly.
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Lutron RadioRa2

Post by rdgerken »

I'll be installing an 85 load system here in a few weeks. I plan to improve this plugin for wireless shades and occupancy sensors. My main goal is to be able to receive events from the motion sensors, run that through conditional logic, and THEN activate lights. For example, I want the motion sensors to turn Zone A on 100% between 8PM and 12AM, but maybe Zone B at 50% between 12AM and 6AM.

Killedbyalbany - have you gotten your issues worked out with the connectivity? I'm interested in learning / contributing.
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Lutron RadioRa2

Post by rdgerken »

Killedbyalbany - I too have been having the problem that you describe - frequent disconnects. I think it may have something to do with the speed at which commands are being sent to the repeater. Haven't messed with modifying that portion of the plugin yet (if I can find where that is being done), but I'm going to see if that helps the stability.

Let me know if you make any progress!
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Lutron RadioRa2

Post by rdgerken »

I have updated this plugin to support the following items:

[*]Occupancy / Vacancy Motion Sensors (Added Events)
[*]Hybrid Keypads
[*]Sivoia QS Wireless Shades

I have also fixed (with Pako's help), the issue that Fiasco originally reported, where the action items were getting created with the values of the last item's parsed values. I have added some error handling. I have also done some general cleanup. Everything is functional and operating very well, but I'm still working on improvements. After I got the PY configured to match the RA2 configuration, I have not had one issue with communications or anything - it's been very stable.

I think that configuration dialogs need to be added for each action, and then, instead of hard coding the configuration in the PY file, a function should be added to load the configuration XML directly from the main repeater, but it needs to be able to be smart enough to detect the changes - that is, leave the actions configured that are already present, remove the ones that were deleted, and add the ones that are new (if that makes any sense). The conditional logic in RA2 you can accomplish with this is very powerful, although it's a bit "clumsy." I also had a lot of really good luck using VoxCommando for voice control in conjunction with this plugin -which BTW, is VERY COOL. My wife thinks I'm ridiculous, so I think my primary objective has been met.

The main thing I don't like about this plugin, is that after it is loaded, there is no way to Modify or Remove the actions or events that are created on Init - as well as the inability to add components without starting over. So, as time permits, I will continue working on this, but this won't be a high priority.

A while back, I tried reaching out to Fiasco, but he is apparently off the scene now. I'm not sure if he's doing any integration work now or not. At any rate - a HUGE thanks to Fiasco and Bitmonster for their work on this plugin.

If anyone is interested in contributing to these efforts, let me know!

Thanks
ultravelocity
Posts: 1
Joined: Fri Dec 28, 2012 5:03 am

Re: Lutron RadioRa2

Post by ultravelocity »

rdgerken - I'd love to get a copy of your updated plug-in...
Killedbyalbany - I'm having the same problems with "bad login". Were you able to find a solution?
Killedbyalbany
Posts: 7
Joined: Thu Apr 29, 2010 2:36 pm

Re: Lutron RadioRa2

Post by Killedbyalbany »

Well, Hurricane Sandy knocked me out for a minute, and I haven't had much of a chance to play with EG since things started settling down.

I managed to get the RA2 plugin to settle down a little bit. I think a lot of the problems came from when I would run "All monitoring", and it would capture an event from one of my motion sensors. After I started getting (very) selective about what I monitored, my success rate went up to around 70%, but catastrophic failures still persist. Got one as i typed this actually.

I would be very interested to take a look at the updated plugin too. Since my last post, I've added a Hybrid Keypad, and a Tabletop Remote, so I plan to try and integrate them over the weekend. If I can get my "Good Morning" button on the Tabletop to not only cue my lights, but fire up my living room TV with the XBMC weather screen, and queue a playlist by Monday, I will consider that two days well spent.
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Lutron RadioRa2

Post by rdgerken »

Guys,

Here is my updated plugin. I have not really done anything with it since my last post, but I think you'll find it a pretty good improvement from the OP. Obviously it's customized for my setup, so you'll want to go in and change the configuration to your home before loading it (per the original instructions). I would really like to get this thing to read the XML from the main repeater directly and build dynamically. I think version 6 of the software is due out any day, so I'll see if the format has changed any.

Sorry to hear about the mess Sandy made. Hope all is better - or getting there quickly.

Thanks

(Deleted file - updated copy further in thread)
Last edited by rdgerken on Tue Jun 04, 2013 12:54 am, edited 1 time in total.
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Lutron RadioRa2

Post by rdgerken »

I have modified the plugin to include the VCRX and also the new 4 speed fan control. I have neither of these devices (yet), and so I have not debugged. If anyone has one/both of these devices and wants to test it, let me know.
mpick92
Posts: 1
Joined: Mon Jun 03, 2013 6:04 pm

Re: Lutron RadioRa2

Post by mpick92 »

rdgerken,
I would love to test out your updated plugin. I just came across eventghost and this plugin - very new to all of this. The home I'm working on has VCRX so I may be able to provide some feedback. Thanks!
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: Lutron RadioRa2

Post by rdgerken »

Here is the updated plugin with VCRX and Fan control support. I purchased some of the fan controllers for my home, and tested those, and it works fine. I do not have a VCRX, and currently no plans to buy one, so if you want to give me feedback on any issues you might find, I would appreciate that. As always, this is a "sanitized" copy of my plugin, so you'll need to change the configuration lists at the top of the code for your application. You can also hard code in your IP / credentials towards the bottom if you want.

Good luck and have fun.

Ryan


NOTE - THIS VERSION REMOVED - SEE LATER POSTS
Last edited by rdgerken on Mon Nov 04, 2013 3:46 am, edited 2 times in total.
Post Reply