FHEM Forum

FHEM => English Corner => Thema gestartet von: credulous am 09 Dezember 2017, 22:19:05

Titel: [solved] Beginner problems using sunrise
Beitrag von: credulous am 09 Dezember 2017, 22:19:05
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
Titel: Antw:Beginner problems using sunrise
Beitrag von: rudolfkoenig am 09 Dezember 2017, 23:12:23
Space is not allowed in the timespec.
Titel: Antw:Beginner problems using sunrise
Beitrag von: credulous am 10 Dezember 2017, 14:19:24
Thanks, didn't think of that. All sorted now.