- Posted on
Tue May 22, 2018 12:31 pm
-
kennybroh
offline
-
- Posts: 531
- Joined: Dec 13, 2009
- Location: Baltimore
So, I've spent a ton of time trying to make a workaround, and testing everything I could think of in the process. It became a bit of an obsession, and I probably couldn't afford the time, but you know how these things are.
The problem seems to be with the device itself, either on a control page or tested from the device list. So I tried creating a phantom X10 dimmer switch and set up a trigger that first set the brightness level from the Popup UI, into a variable, and then called an action containing a script which opened a terminal window, logged into the bridge, and fed it #OUTPUT command using that brightness level variable. That worked, but I was left with the problem of not wanting to take the time to log into the bridge each time any dimmer changed its level, but for the life of me I could not figure out how to test for whether I was already logged into the bridge when I did it that way, and the state of your OUT device was "idle" even if I logged out of the bridge and quit terminal.
I guess I assumed the errors from your plugin were fundamental, and somehow I thought I remembered getting errors when I tried to connect your OUT device, But I noticed I was getting return values in the log from your IN device when something changed, so tried creating an action which connected your OUT device mainly to see if that changed the state. When that connected without an error, for grins then I added your action to set the brightness using the variable for the X10 device... and voila, that worked too!
For some reason sending a raw command--the same ones that worked fine through the terminal--were very squirrelly. And I continue to get errors when I try to use the actual Lutron device created from the integration report. So the guts of the plugin seem to be oK. The problems are with the device and the raw command option.
So I've got it working with the X10 kludge together with your actions, and I am done fiddling for now. Let me know what you want me to upload to the github. Enjoy Africa!