Using PLCBus command to trigger timed event
Posted: Sun Jan 01, 2012 6:56 pm
Hi all
I am having trouble understanding some of the intricacies of using Domotiga (up to now I have used Powerhome2 with an X10 interface, but this is unreliable compared to the PLCBus interface and PH2 doesn't support the PLCBus interface).
I have some external lights on PLCbus modules which are code A4 and an IR unit which sends out code A16. What I want to achieve is the ability to receive the IR unit A16 code then run a macro which looks at the time of day (night time or daylight), switches on the external A4 lights for 5 minutes if it is dark, then turns them off again. The IR unit does not have a timer to do this automatically and neither do any other PLCBus weatherproof units I have seen.
What I cannot work out is how to intercept a PLCBus code from within Domitiga and use it as a trigger. Is there a way of having a virtual device which you can turn on/off or just a way to use the incoming A16 code to directly activate a trigger ?
Another related problem is that if Domotiga receives an additional IR signal within the 5 minute period then I need to extend the timer in the macro by and additional 5 minutes, or kill the original macro and replace it with a new one. Failure to do this would of course result in the original macro switching of the lights prematurely.
This, and related schemes, are my main reason for using PLCBus and I would be grateful if someone can give me some pointers to get started.
Thanks
Tim Scott
I am having trouble understanding some of the intricacies of using Domotiga (up to now I have used Powerhome2 with an X10 interface, but this is unreliable compared to the PLCBus interface and PH2 doesn't support the PLCBus interface).
I have some external lights on PLCbus modules which are code A4 and an IR unit which sends out code A16. What I want to achieve is the ability to receive the IR unit A16 code then run a macro which looks at the time of day (night time or daylight), switches on the external A4 lights for 5 minutes if it is dark, then turns them off again. The IR unit does not have a timer to do this automatically and neither do any other PLCBus weatherproof units I have seen.
What I cannot work out is how to intercept a PLCBus code from within Domitiga and use it as a trigger. Is there a way of having a virtual device which you can turn on/off or just a way to use the incoming A16 code to directly activate a trigger ?
Another related problem is that if Domotiga receives an additional IR signal within the 5 minute period then I need to extend the timer in the macro by and additional 5 minutes, or kill the original macro and replace it with a new one. Failure to do this would of course result in the original macro switching of the lights prematurely.
This, and related schemes, are my main reason for using PLCBus and I would be grateful if someone can give me some pointers to get started.
Thanks
Tim Scott