Dimmer Extender discussion

Posted on
Wed Nov 14, 2012 2:17 am
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Dimmer Extender discussion

Feel free to post any comments questions or requests in this thread.

Posted on
Wed Nov 14, 2012 1:16 pm
davvi offline
User avatar
Posts: 110
Joined: Sep 27, 2011
Location: Austin, TX

Re: Dimmer Extender discussion

Thank you for creating this!

When trying to configure set brightness with ramp rate though, I'm getting an error: "NSSize: {72, 72}". The event log displays this: "dialogForActionId() caught exception: NSInvalidArgumentException -- -[NSRegion copyWithZone:]: unrecognized selector sent to instance 0xd46c1a0"

Also, if I click Save again after getting the error, Indigo quits.

The dimmer I'm trying to control is a SwitchLinc Dimmer with Firmware 40 (i2 engine)

Any ideas?

Posted on
Wed Nov 14, 2012 1:24 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Dimmer Extender discussion

Hi davvi.

Thanks for the report. I'm guessing you're using Indigo 6 b1. Those errors seem to be related to Cocoa UI methods (not used in the plugin). I've seen a similar error before in another of my plugins with Indigo 6 but it disappeared and I was unable to nail down exactly what caused it. It appears to possibly be a bug in the Indigo 6 UI, perhaps combined with the plugin not returning something that the Indigo client is expecting. I'll look into it and see if I can't figure it out.

Posted on
Wed Nov 14, 2012 1:26 pm
matt (support) offline
Site Admin
User avatar
Posts: 21416
Joined: Jan 27, 2003
Location: Texas

Re: Dimmer Extender discussion

If either one of you can get steps for us to reproduce this one, then let us know and we'll look into it on the Indigo client side. Thanks.

Image

Posted on
Wed Nov 14, 2012 1:41 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Dimmer Extender discussion

I'm able to reproduce the Indigo 6 b1 client crashing when attempting to save the action. It crashes while displaying "Validating..." at the bottom of the action dialog, which I assume indicates that it is executing the "validateActionConfigUi" method in the plugin. I'll send a more detailed reproduction procedure to Indigo Support shortly.

Posted on
Wed Nov 14, 2012 1:43 pm
davvi offline
User avatar
Posts: 110
Joined: Sep 27, 2011
Location: Austin, TX

Re: Dimmer Extender discussion

Thanks for the ultra-quick response. Here are additional notes.

I initially got the error when I was editing an Action that is supposed to take place after a Trigger. So the steps would be:

Actions > Type > Device Actions > Dimmer Extender Controls > Set Brightness with Ramp Rate

I selected the device I want to dim, then click Edit Action Settings.

The first time I did this I entered these settings:

Brightness Source: Enter Value
Brightness: 30
Use Ramp Rate Variable: Deselected
Ramp Rate: 0.3 sec
Delay:
Retries: 3

I tried different settings and different dimmers and kept getting the same results ("PAXCheckBox" message or Indigo quitting).

I also tried creating an Action Group rather than a Trigger Action, and still got the errors.

Same thing after reloading the plugin.

Posted on
Wed Nov 14, 2012 2:36 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dimmer Extender discussion

I found the problem. In the plugin, you're setting showAlertText to None. The code wasn't expecting a null string for the alert text. I'll fix it in the next beta release, but you can fix the problem in your plugin by not setting showAlertText unless you actually have text to show... ;)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Nov 14, 2012 2:49 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dimmer Extender discussion

As an aside, your action validation method will never actually complete successfully because you're always setting showAlertText in the errorsDict - which means it will always be non empty. At the end of the method, you check to see if the errorsDict is empty and only if it is do you return true.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Wed Nov 14, 2012 2:59 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Dimmer Extender discussion

Thanks for the pointer Jay. I'll fix the validation method in the plugin. I figured it was related to the error checking code.

Posted on
Wed Nov 14, 2012 3:15 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Dimmer Extender discussion

Update 1.0.1 Posted

Download 1.0.1 which fixes the bug that causes the Indigo 6 beta 1 client to crash on action dialog validation.

Posted on
Wed Nov 14, 2012 3:25 pm
davvi offline
User avatar
Posts: 110
Joined: Sep 27, 2011
Location: Austin, TX

Re: Dimmer Extender discussion

The speed with which this was figured out and fixed is further proof that this is one of the best forums out there...

Posted on
Wed Nov 14, 2012 3:40 pm
jay (support) offline
Site Admin
User avatar
Posts: 18212
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Dimmer Extender discussion

Thanks - although I have to say that at the moment we're hyper-sensitive to problems since we just released the beta. ;)

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sun Nov 25, 2012 7:03 pm
davvi offline
User avatar
Posts: 110
Joined: Sep 27, 2011
Location: Austin, TX

Re: Dimmer Extender discussion

This plugin is extremely helpful for any lights that turn on automatically which should happen quickly (so you're not standing in a dark hallway while the lights are brightening), but then fade out gradually when there is no longer anyone there (so the light change isn't sudden and attention-grabbing). Thank you for the great work.

Posted on
Sun Nov 25, 2012 7:34 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Dimmer Extender discussion

davvi wrote:
This plugin is extremely helpful for any lights that turn on automatically which should happen quickly (so you're not standing in a dark hallway while the lights are brightening), but then fade out gradually when there is no longer anyone there (so the light change isn't sudden and attention-grabbing). Thank you for the great work.

Thank! That's actually exactly how I use it as we'll. :-D

Posted on
Sun Dec 09, 2012 12:27 pm
DU Lou offline
Posts: 279
Joined: Mar 08, 2012
Location: Florida

Re: Dimmer Extender discussion

Thank for the great contribution. I am having fun setting up some dramatic Actions and Triggers with this plugin. I did notice that the selectable ramp rates offered are less then the default ramp rates that can be selected from the device itself. Is that by design or just a limitation of the plugin?

Thanks again,
~Lou

Who is online

Users browsing this forum: No registered users and 4 guests