Autor Thema: KlikAanKlikUit and on-for-timer  (Gelesen 2076 mal)

Offline HarryT

  • Full Member
  • ***
  • Beiträge: 168
KlikAanKlikUit and on-for-timer
« 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}
FHEM 6.1 auf Raspberry Pi1  (700Mhz)
RFXTRX433XL, ZWave und KFL200
Raspberry Pi3 f(1,2 Ghz) and Raspberry Pi4 for testing

Offline Willi

  • Sr. Member
  • ****
  • Beiträge: 594
Aw: KlikAanKlikUit and on-for-timer
« Antwort #1 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
FHEM@Q600(debian) mit DS9490R (1Wire) | FHEM@Sheevaplug(debian) mit RFXCOM-Receiver(80002), CULv3 & USB-WDE1 | FHEM@odroid mit CULv2 & RFXtrx433

Offline HarryT

  • Full Member
  • ***
  • Beiträge: 168
Aw: KlikAanKlikUit and on-for-timer
« Antwort #2 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}
FHEM 6.1 auf Raspberry Pi1  (700Mhz)
RFXTRX433XL, ZWave und KFL200
Raspberry Pi3 f(1,2 Ghz) and Raspberry Pi4 for testing

 

decade-submarginal