Since I could not find anything that would meet my requirements, I wrote a Jython script with the following features:
calendar: specifies the daily schedule that is to be run on a particular day.
daily schedule: e.g. “workday” “weekend” “vacation”. It defines the rules that are to be run a particular type of day.
rule: defines the time/trigger and action to be run on which rollershutter.
shading logic: create a shading model for each rollershutter and then have the script calculate if it is currently sunlit or not. (using the astro binding). Autoclose the rollershutter when window is sunlit.
weather / sun sensor awareness: include info from weather binding and / or a sun sensor
It is not optimised in any way and there might have been better ways to achieve the same result. But I wanted to have a working solution quickly.
I found it rather difficult to get started with openhab2 and Jython. I guess I’m not the only one, so you may find this script helpful as an example even if rollershutters are not of interest to you.
Interesting. Up until a few weeks ago I was using a Tahoma box myself. It is exactly that box I wanted to get rid of since I wanted more control over my rollershutters. But if I understand your posts correctly you are using it merely as communication tool, ignoring its automation features, right?
Yes, just the communication, the automation features of that thing are not worth discussing
My main reason is that I could not configure the rfxcom sender, so in the end I just gave up and bought the Tahoma after seeing that @Ondrej_Pecta hat written a nice binding for it. Now, my family is just happy that the rollershutters “just work”
I am testing your script with one of my shutters. Going up in den morning and down in the evening is working fine. But the shutter is not closing when the sun hits the window.
The calculation seems to work, but the script does not close the shutter.
My shutters (Somfy) travel to a previously saved position when I send the command “STOP”. By default that position is shutters almost closed but letting just a bit daylight in. Exactly what I need during the day when the sun shines.
This may be different with your shutters. If that is the case you would have to send a DOWN command instead of STOP.