FHEM Forum

FHEM - Hausautomations-Systeme => RFXTRX => Thema gestartet von: HarryT am 21 Juli 2013, 17:47:19

Titel: KlikAanKlikUit and on-for-timer
Beitrag von: HarryT am 21 Juli 2013, 17:47:19
Hi

If I read the command ref correct the TRX_light supports on-for-timer

When I try
{ set Lamp2 on-for-timer +00:00:02 }
I get an error when parsing the command. I know there was a discussion this may only work for blinds, but even changing the definition from light to blind didn't solve the issue.
Anybody an idea what my error is?

Ps, I know that the KlikUitKlikUit devices don´t support a timer so it must be implemented in software and that I could do this myself with an at command. But using on-for-timer would make my code easier.

{HT}
Titel: Aw: KlikAanKlikUit and on-for-timer
Beitrag von: Willi am 22 Juli 2013, 00:01:19
The error message

Timespec (HH:MM[:SS]) needed for the on-for-timer command
should give you a hint.
Try

set Lamp2 on-for-timer 00:00:02
Just omit the + sign.

I will put some samples and explanations into commandref for this...
To my apologize: Wehn I implemented this, the description for on-for-timer was different.

-- Willi
Titel: Aw: KlikAanKlikUit and on-for-timer
Beitrag von: HarryT am 24 Juli 2013, 19:38:31
Thanks for the help. Actually I made another mistake too so I didn't came so far to get an error message. But it works now.

Not especially important for me, but when used for blinds, I think if you have on-for-timer it is logical if there is also an off-for-timer.

{HT}