Hallo,
ich schaltet mit dem sunrise und sunset meine Rollläden, um genau zu sein mit
Internals:
COMMAND set Rolladen2_Cmd_Ab on-for-timer 1
DEF *{sunset_abs("REAL",+600)} set Rolladen2_Cmd_Ab on-for-timer 1
FUUID 5c435c23-f33f-de07-640f-8f88f9ec7b13e5e7
NAME R2_runter
NR 286
NTM 18:45:59
PERIODIC yes
RELATIVE no
REP -1
STATE Next: 18:45:59
TIMESPEC {sunset_abs("REAL",+600)}
TRIGGERTIME 1553363159
TRIGGERTIME_FMT 2019-03-23 18:45:59
TYPE at
READINGS:
2019-03-22 18:45:59 state Next: 18:45:59
Attributes:
alias Schlafzimmer Ab
event-on-change-reading state
group Automatik
icon ios-on-for-timer-green
room Rollläden
sortby 4
Was passiert:
wenn heute der sunset_abs z.B. bei 18:44 Uhr ist dann wird das at um 18:44 Uhr getriggert, soweit OK. Gleichzeitig wird aber das sunset_abs auf den Sonnenuntergang für morgen, z.B. auf 18:45 gesetzt. Dies hat natürlich zur Folge, das das at um 18:45 erneut getriggert wird. So passiert das im Frühjahr, wenn die Tage länger werden täglich.
Das will aber keiner! Ich beiße mir die Zähne aus, wie ich den doppelten Trigger unterdrücken kann. Hat jemand eine gute Idee?
Danke schon mal vorab!
Ja,
nimm die Funktion ohne abs
Zitatsunrise() and sunset() return the absolute time of the next sunrise/sunset, adding 24 hours if the next event is tomorrow, to use it in the timespec of an at device or for the on-till command for FS20 devices.
Gruß Otto