Hello everybody,
I have installed several roller shutters in the house. The one in the bedroom should open the blind a later at the weekend. Besides, I like the idea that the blinds open depending on astro time (civil dawn), but not later than predefined time.
So I have these things defined:
Thing astro:sun:wochenende "Rolladenöffnung Wochenende" [geolocation="50.7,7.1", interval=60]
{Channels:
Type rangeEvent: rise#event
[
earliest="08:30"
]
}
Thing astro:sun:wochenende "Rollandenöffnung Wochenende" [geolocation="50.7,7.1", interval=60]
{Channels:
Type rangeEvent: rise#event
[
earliest="07:00"
]
}
But how do I decide whether it is weekend or not? I thought this rule would be a good idea:
rule "Rolladen rauf"
when
(Channel 'astro:sun:nicht_wochenende:rise#event' triggered START) and (Ephemeris.isWeekend())
then
Rolladen_Esszimmer.sendCommand(UP)
Rolladen_Wohnzimmer.sendCommand(UP)
Rolladen_Wohnzimmer_S.sendCommand(UP)
Rolladen_Arbeitszimmer.sendCommand(UP)
Rolladen_SZ.sendCommand(UP)
end
Unfortunately this is followed by an error
[{
"resource": "/run/user/1000/gvfs/smb-share:server=openhab.local,share=openhab-conf/rules/Rolladen.rules",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "org.eclipse.xtext.diagnostics.Diagnostic.Syntax",
"severity": 8,
"message": "no viable alternative at input '('",
"startLineNumber": 55,
"startColumn": 5,
"endLineNumber": 55,
"endColumn": 6
}]
Of course I have to set up another rule to open the blind outside the weekend…
But this error is annoying me. Any idea?
Thanks in advance,
Ulrich
I am running openhabian 3.2 on a raspberry pi.