Autor Thema: [solved] Beginner problems using sunrise  (Gelesen 524 mal)

Offline credulous

  • New Member
  • *
  • Beiträge: 10
[solved] Beginner problems using sunrise
« 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
« Letzte Änderung: 11 Dezember 2017, 19:12:58 von credulous »

Offline rudolfkoenig

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 18628
Antw:Beginner problems using sunrise
« Antwort #1 am: 09 Dezember 2017, 23:12:23 »
Space is not allowed in the timespec.
Gefällt mir Gefällt mir x 1 Liste anzeigen

Offline credulous

  • New Member
  • *
  • Beiträge: 10
Antw:Beginner problems using sunrise
« Antwort #2 am: 10 Dezember 2017, 14:19:24 »
Thanks, didn't think of that. All sorted now.

 

decade-submarginal