Ive got a magnetic switch by the door. I would like it to activate a lamp when i enter my home (hence by ON-command from switch), and the lamp should be lit by a set time (when i close the door - OFF from switch - timer starts). Ive fiddled around but haven't got it to work.
Help please
Event by breaker
Re: Event by breaker
Well, to answer myself. Manage to do it by creating a Device Command under Signals. Created command with by putting the magnet switch ON-command in the "Pattern to match", hence "tellstick,raw:class:command;protocol:arctech;model:selflearning;house:15271314;unit:10;group:0;method:turnon;". This then is set to Activate a timer, which then starts a desired time and then the timer is set to turn off the chosen device, the light in the doorway.