[solved] Beginner problems using sunrise

Begonnen von credulous, 09 Dezember 2017, 22:19:05

Vorheriges Thema - Nächstes Thema

credulous

Hello All,

Apologies if this is a daft question, but I am just starting out with FHEM.
I have some lights that I want to turn on around sunset each day, so I am trying this
define sunsetLampOn at *{sunset ("REAL", 0, "15:00", "21:00") } set GHoma_6263e4,GHoma_61e1b2 on

However I just get an error saying
Wrong timespec {sunset: either HH:MM:SS or {perlcode}

I have ran the sunset command through telnet and it is returning a time in HH:MM;SS format, but the hours are greater that 24 .. I am assuming this is because next sunset is tomorrow and therefore it is +24 hour ..

Is there something wrong with what I am doing, or should I simply try this again between midnight and sunset ?

I am assuming that at will figure this out when creating the next event?

Thanks

Steve

rudolfkoenig

Space is not allowed in the timespec.

credulous

Thanks, didn't think of that. All sorted now.