Page 1 of 1

Standard types relay and dimmer

PostPosted: Sun Jan 22, 2012 1:20 am
by Juju
Hello,

I'm working on a plugin allowing to create relay and dimmer devices. At this time, all the code to perform basic actions like on, off, dim, bright, ... is OK, and I have defined these actions in Actions.xml.

I'm working now on the state feedback. I read (and I hope well understood) in the documentation that a device defined in Devices.xml as a standard type (relay and dimmer for the moment) can "inherit" behaviours from its type (states, actions, ...) and can be controlled by the Indigo Server through standard actions : turnOn, turnOff, ...

But I don't understand how to link my existing functions with the standard Indigo actions. Same question with state : I can define specific state, but I think devices inherit from their types.

Re: Standard types relay and dimmer

PostPosted: Sun Jan 22, 2012 8:17 am
by jay (support)
We haven't released that functionality yet - it will be in the next release. Sometime this week hopefully. And we'll have documentation and examples available then.

Re: Standard types relay and dimmer

PostPosted: Sun Jan 22, 2012 8:48 am
by Juju
OK Jay. So I have just to wait the release ...!
Thanks.

Re: Standard types relay and dimmer

PostPosted: Sat Feb 18, 2012 6:20 pm
by HomeAutomationPlugins.com
Hi,

Any news on when this documentation will be updated?

I'm trying to do the exact same thing but need to know how to implement turnOn, turnOff, statusRequest, actionControlDimmerRelay etc....

Thanks!

Re: Standard types relay and dimmer

PostPosted: Sat Feb 18, 2012 6:28 pm
by jay (support)
Check out the SDK - really good and thorough examples in there.

Re: Standard types relay and dimmer

PostPosted: Sat Feb 18, 2012 6:47 pm
by HomeAutomationPlugins.com
Thanks Jay - is that SDK package more up to date than the documentation here? - http://www.perceptiveautomation.com/wik ... g_tutorial - as that page has got the "Fix Me" graphic on the section regards turnOn/turnOff implementation in Python...

Thanks again!

Re: Standard types relay and dimmer

PostPosted: Sat Feb 18, 2012 6:52 pm
by jay (support)
Yes. The docs are lagging a bit but the examples are clear.

Re: Standard types relay and dimmer

PostPosted: Sun Feb 19, 2012 4:40 am
by Juju
And it's really easy to implement.
I done it for my PLCBUS plugin, and it works like a charm !

Re: Standard types relay and dimmer

PostPosted: Sun Feb 19, 2012 5:07 am
by HomeAutomationPlugins.com
Thanks - yep - it's really easy looking through the documentation!

Re: Standard types relay and dimmer

PostPosted: Sun Feb 19, 2012 11:20 am
by matt (support)
reading123 wrote:
Thanks Jay - is that SDK package more up to date than the documentation here? - http://www.perceptiveautomation.com/wik ... g_tutorial - as that page has got the "Fix Me" graphic on the section regards turnOn/turnOff implementation in Python...

Thanks for the pointer on the Wiki. I haven't improved the FIXME's yet, but I did just add a link to the SDK at the top of that tutorial wiki.