Standard types relay and dimmer

Forum rules

This is a legacy forum which is locked for new topics. New topics should be started in one of the other forums under Extending Indigo

Posted on
Sun Jan 22, 2012 1:20 am
Juju offline
Posts: 76
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Standard types relay and dimmer

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.

Posted on
Sun Jan 22, 2012 8:17 am
jay (support) offline
Site Admin
User avatar
Posts: 8881
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Standard types relay and dimmer

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.

Jay (Indigo Support)
Twitter | Facebook

Posted on
Sun Jan 22, 2012 8:48 am
Juju offline
Posts: 76
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Re: Standard types relay and dimmer

OK Jay. So I have just to wait the release ...!
Thanks.

Posted on
Sat Feb 18, 2012 6:20 pm
HomeAutomationPlugins.com offline
Posts: 41
Joined: Feb 18, 2012

Re: Standard types relay and dimmer

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!

Posted on
Sat Feb 18, 2012 6:28 pm
jay (support) offline
Site Admin
User avatar
Posts: 8881
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Standard types relay and dimmer

Check out the SDK - really good and thorough examples in there.

Jay (Indigo Support)
Twitter | Facebook

Posted on
Sat Feb 18, 2012 6:47 pm
HomeAutomationPlugins.com offline
Posts: 41
Joined: Feb 18, 2012

Re: Standard types relay and dimmer

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!

Posted on
Sat Feb 18, 2012 6:52 pm
jay (support) offline
Site Admin
User avatar
Posts: 8881
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Standard types relay and dimmer

Yes. The docs are lagging a bit but the examples are clear.

Jay (Indigo Support)
Twitter | Facebook

Posted on
Sun Feb 19, 2012 4:40 am
Juju offline
Posts: 76
Joined: Aug 31, 2011
Location: Toulouse - FRANCE

Re: Standard types relay and dimmer

And it's really easy to implement.
I done it for my PLCBUS plugin, and it works like a charm !

Posted on
Sun Feb 19, 2012 5:07 am
HomeAutomationPlugins.com offline
Posts: 41
Joined: Feb 18, 2012

Re: Standard types relay and dimmer

Thanks - yep - it's really easy looking through the documentation!

Posted on
Sun Feb 19, 2012 11:20 am
matt (support) offline
Site Admin
User avatar
Posts: 14058
Joined: Jan 27, 2003
Location: Texas

Re: Standard types relay and dimmer

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.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 0 guests