| Author |
Message |
|
Juju
Joined: Aug 31, 2011 Posts: 56 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.
|
| Sun Jan 22, 2012 1:20 am |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6659 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)
|
| Sun Jan 22, 2012 8:17 am |
|
 |
|
Juju
Joined: Aug 31, 2011 Posts: 56 Location: Toulouse - FRANCE
|
 Re: Standard types relay and dimmer
OK Jay. So I have just to wait the release ...! Thanks.
|
| Sun Jan 22, 2012 8:48 am |
|
 |
|
HomeAutomationPlugins.com
Joined: Feb 18, 2012 Posts: 53
|
 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!
|
| Sat Feb 18, 2012 6:20 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6659 Location: Austin, Texas
|
 Re: Standard types relay and dimmer
Check out the SDK - really good and thorough examples in there.
_________________ Jay (Indigo Support)
|
| Sat Feb 18, 2012 6:28 pm |
|
 |
|
HomeAutomationPlugins.com
Joined: Feb 18, 2012 Posts: 53
|
 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!
|
| Sat Feb 18, 2012 6:47 pm |
|
 |
|
jay (support)
Site Admin
Joined: Mar 19, 2008 Posts: 6659 Location: Austin, Texas
|
 Re: Standard types relay and dimmer
Yes. The docs are lagging a bit but the examples are clear.
_________________ Jay (Indigo Support)
|
| Sat Feb 18, 2012 6:52 pm |
|
 |
|
Juju
Joined: Aug 31, 2011 Posts: 56 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 !
|
| Sun Feb 19, 2012 4:40 am |
|
 |
|
HomeAutomationPlugins.com
Joined: Feb 18, 2012 Posts: 53
|
 Re: Standard types relay and dimmer
Thanks - yep - it's really easy looking through the documentation!
|
| Sun Feb 19, 2012 5:07 am |
|
 |
|
matt (support)
Site Admin
Joined: Jan 27, 2003 Posts: 11692 Location: Texas
|
 Re: Standard types relay and dimmer
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.
_________________
|
| Sun Feb 19, 2012 11:20 am |
|
|