KlikAanKlikUit and on-for-timer

Begonnen von HarryT, 21 Juli 2013, 17:47:19

Vorheriges Thema - Nächstes Thema

HarryT

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.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.

Willi

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

HarryT

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.3 auf Raspberry Pi3  (1,2 Ghz)
RFXTRX433XL, ZWave, KFL200 and ConBeeIII
Raspberry Pi1 (0,7 Ghz) and Raspberry Pi4 for testing
German reading skills are good.