FHEM > English Corner

How to use an "at" command with a "Perl" command?

(1/2) > >>

Fonz:
Hi,

I would like to use the Twilight module.

I know its working because I can type...


--- Zitat ---get myTwilight ss_indoor
--- Ende Zitat ---


Into the Fhem web interface, and it returns a time.



However I am unsure of the syntax to use with a "at" command as...


--- Zitat ---define b6 at *{myTwilight ss_indoor} set Lamp on
--- Ende Zitat ---


Does not work.

Could anyone help me with the syntax for this please?

Many thanks,

Fonz

Guido:
Hello Fonz,

for me it works as follows

define b6 at *{ReadingsVal("myTwilight","ss_indoor","00:00:00")} set Lamp on;;set Rolos off

Fonz:
Thank you!

That worked...

One more question if you its not too much trouble.

How could I then add or subtract a few minuets to this time, to get my lights exactly when I want them?

Thank you again,

Fonz

jhohn:
Maybe http://fhem.de/commandref.html#SUNRISE_EL is what you are looking for?

Fonz:
Thank You Jhohn.

I was more looking to take 7 minuets away from the weather calculated Twilight time.

I find the time is very accurate, but due to a large tree my room gets dark 7 minuets before hand.

Regards,

Fonz

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln