FHEM Forum

FHEM => English Corner => Thema gestartet von: VVlasy am 23 März 2015, 19:17:02

Titel: notify only if between sunrise and sunset
Beitrag von: VVlasy am 23 März 2015, 19:17:02
So, I am here again, with another request for help.

alarm_on_rollo notify Alarm:on { fhem("Rollo_All up") if(*) }

In the * space, I need to input to only execute only after sunrise and before sunset.

This was my idea (not tested tho) :

{ fhem("Rollo_All up") if($sunrise $sunset) }
Titel: Antw:notify only if between sunrise and sunset
Beitrag von: rudolfkoenig am 23 März 2015, 20:18:34
* = !isday()
Titel: Antw:notify only if between sunrise and sunset
Beitrag von: VVlasy am 24 März 2015, 17:18:55
I guess I am doing it wrong:

alarm_on_rollo notify Alarm:on { fhem("Rollo_All up") if(!isday()) }

Is not working
Titel: Antw:notify only if between sunrise and sunset
Beitrag von: rudolfkoenig am 24 März 2015, 20:03:08
I guess you are right. Any idea what "Rollo_All up" as a FHEM command should do? Did you tried it in the command-input?
Btw. you can test just the command part of the notify by entering it directly in the FHEM command input, I guess you get a more detailed error message then.
Titel: Antw:notify only if between sunrise and sunset
Beitrag von: VVlasy am 24 März 2015, 21:36:42
alarm_on_rollo notify Alarm:on { fhem("set Rollo_All up") if(!isday()) }

I forgot set, my bad.

EDIT: Even after adding set, it still doesnt work, when I enter it into the cmd line no error pops up and nothing happens.