View unanswered posts | View active topics It is currently Fri Apr 18, 2014 8:53 pm

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



This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
 Standard types relay and dimmer 
Author Message

Joined: Aug 31, 2011
Posts: 72
Location: Toulouse - FRANCE
Post 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
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 8355
Location: Austin, Texas
Post 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)
Image


Sun Jan 22, 2012 8:17 am
Profile WWW

Joined: Aug 31, 2011
Posts: 72
Location: Toulouse - FRANCE
Post Re: Standard types relay and dimmer
OK Jay. So I have just to wait the release ...!
Thanks.


Sun Jan 22, 2012 8:48 am
Profile

Joined: Feb 18, 2012
Posts: 41
Post 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
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 8355
Location: Austin, Texas
Post Re: Standard types relay and dimmer
Check out the SDK - really good and thorough examples in there.

_________________
Jay (Indigo Support)
Image


Sat Feb 18, 2012 6:28 pm
Profile WWW

Joined: Feb 18, 2012
Posts: 41
Post 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
Profile
Site Admin
User avatar

Joined: Mar 19, 2008
Posts: 8355
Location: Austin, Texas
Post Re: Standard types relay and dimmer
Yes. The docs are lagging a bit but the examples are clear.

_________________
Jay (Indigo Support)
Image


Sat Feb 18, 2012 6:52 pm
Profile WWW

Joined: Aug 31, 2011
Posts: 72
Location: Toulouse - FRANCE
Post 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
Profile

Joined: Feb 18, 2012
Posts: 41
Post Re: Standard types relay and dimmer
Thanks - yep - it's really easy looking through the documentation!


Sun Feb 19, 2012 5:07 am
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 13210
Location: Texas
Post 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


Sun Feb 19, 2012 11:20 am
Profile WWW
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.