PDA

View Full Version : Coding Question


T666
04 Aug 04, 09:49 AM
Sup.
This is my first question:|

In a bathroom i have a 2 button keyinput.
Button 1 turns the light on/off/dims.
Button 2 turns the fan on/off

how do i code the fan button, so it can be turned on with 1 press, turned off 10 minutes later (timer function) with a second press, OR turned off immediately if the button is held down?
Is that possible?

This way the fan can be controled to be turned on, turned off in 10 minutes(timer) or turned off immediately all from one button? Or am i gona need an extra button for this?


Any tips apreciated :cool:

Newman
04 Aug 04, 10:03 AM
Hmm, tricky.

For the key that you want to control the Fan select it to be a timer key. Then select the timer type to be a RETRIGGER timer in lieu of the default TOGGLE timer. The set your timeout interval.

This should give you the functionality you're looking for except that the 10 minute timer will always be running when the fan is turned On.

[IL]NewGen
04 Aug 04, 10:12 AM
I'd rather play around with it in H-Minder... I'd might give you a little more functionality with the logic...

Wonkey
04 Aug 04, 10:27 AM
suggest how about toggling the load with a short press and starting the timer with the long press
set it up as follows
Short press IDLE
Short TOGGLE
Long press ONKEY
Long release START
remember to set the timer and expiry function

T666
04 Aug 04, 10:42 AM
thanks doods ill sus all this out.
I cant test it for couple more days tho cuz I goto chase couple more walls before the renderers show up, i just posted the question becasue i just joined up and was thinking about that question.
ill check out homeminder also, but i read in that forum something about its not going to be a continued product or somthing?
I have about 20 Cbus2 NEO keyinputs and dimmers/relays etc.
I will be ready to instal all the stuff like in 2 weeks, cuz the house is almost ready to be wired now. So ill have heaps o questions soon :D
I got some logic questions to do with similar type deals ill post them once i got the system more setup so i can test it all out.
:)