fibaro rollershutter and specific position using percentage

1,202 views
Skip to first unread message

Arnold Maderthaner

unread,
Jul 24, 2015, 10:44:12 AM7/24/15
to openhab
Hi !

I try to open my window blinds using the Fibaro Roller Shutter 2 and it work using UP/DOWN/STOP values using the following item definition:

Group:Rollershutter:OR(UP, DOWN, STOP) gShutterWohnen "Rollläden [(%d)]" <rollershutter>

Rollershutter   ZwaveShutterEsszimmer   "Rollladen Esszimmer"  <rollershutter> (gShutterWohnen)        { zwave="5:invert_state=false" }


I also have a definition in my sitemap:

        Frame label="Rollo" {

           Switch item=gShutterWohnen label="Rollläden Wohnen [(%d)]" mappings=[UP="^", STOP="X", DOWN="v"]

           Switch item=ShutterCats label="Cats"

        }



I have here an additional switch that should trigger a rule to open the window blinds only to a certain percentage:

import org.openhab.core.library.types.*

import org.openhab.model.script.actions.*


rule "Katzenposition"

    when

        Item ShutterCats  changed from OFF to ON

    then

        sendCommand(gShutterWohnen,20)

end



the issue is that it always opens up completely and not to the specified percentage. Anyone knows what I did wrong ?

michael...@outlook.com

unread,
Jul 25, 2015, 5:34:09 AM7/25/15
to openhab, arn...@maderthaner.me
Hello Arnold

I'm not sure if you can use the Percentage Command on Groups.
I use it on single Shutters and there it works well.

I recommend to use <item>.sendcommand(Command) e.g. gShutterWohnen.sendCommand(20)

Try it on a single blind (ZWaveShutterEsszimmer.sendCommand(20)).

I hope it helps.

Michael

Arnold Maderthaner

unread,
Jul 25, 2015, 5:36:04 AM7/25/15
to michael...@outlook.com, openhab
hi michael !

thanks will try it - can you also send me a sample items/sitemap deginition so that I can compare it with mine ?

yours Arnold

michael...@outlook.com

unread,
Jul 25, 2015, 5:56:26 AM7/25/15
to openhab, arn...@maderthaner.me
Hello Arnold

My items look like this:

Rollershutter Jal_Kueche "Jalousie Küche" <rollershutter> (gWohnzimmer, gRollershutter_West) {zwave="9:invert_state=true"}

in my sitemap they found their position like:

Text label="Wohnzimmer und Küche" icon="sofa" {
Frame label="Steuerung" {
Switch item=Jal_Kueche


and in rules I use

Jal_Kueche.sendCommand(STOP)

I even use 
Jal_Wohnzimmer.sendCommand(70)
to move my blinds a little bit deeper than our sofa is...


regards
Michael

Arnold Maderthaner

unread,
Aug 1, 2015, 5:14:48 AM8/1/15
to openhab, arn...@maderthaner.me
Hi !

I just tried as you suggested but doesn't work for me :(

Here my definitions:
Items:

Group:Rollershutter:OR(UP, DOWN, STOP) gShutterWohnen "Rollläden [(%d)]" <rollershutter>

Rollershutter   ZwaveShutterEsszimmer   "Rollladen Esszimmer"  <rollershutter> (gShutterWohnen)        { zwave="5:invert_state=false,command=SWITCH_MULTILEVEL" }

Rollershutter   ZwaveShutterWohnzimmer   "Rollladen Wohnzimmer"  <rollershutter> (gShutterWohnen)        { zwave="7:invert_state=false,command=SWITCH_MULTILEVEL" }

Rollershutter   ZwaveShutterWohnzimmer2   "Rollladen Wohnzimmer-klein"  <rollershutter> (gShutterWohnen)        { zwave="6:invert_state=true,command=SWITCH_MULTILEVEL" }

Switch ShutterKatzen


Sitemap:

Frame label="Rollo" {

           Switch item=gShutterWohnen label="Rollläden Wohnen [(%d)]" mappings=[UP="^", STOP="X", DOWN="v"]

  Switch item=ZwaveShutterEsszimmer label="Esszimmer [(%d)]" mappings=[UP="^", STOP="X", DOWN="v"]

  Switch item=ZwaveShutterWohnzimmer label="Wohnzimmer [(%d)]" mappings=[UP="^", STOP="X", DOWN="v"]

         Switch item=ZwaveShutterWohnzimmer2 label="Wohnzimmer-klein [(%d)]" mappings=[UP="^", STOP="X", DOWN="v"]

  Switch item=ShutterKatzen label="Katzen" 

  }





Rule:

import org.openhab.core.library.types.*

import org.openhab.model.script.actions.*


rule "Katzenposition"

    when

        Item ShutterKatzen  changed from OFF to ON

    then

        sendCommand(ZwaveShutterWohnzimmer,20)

end



So whenever the state of ShutterKatzen changes from Off to On it should move the ZwaveShutterWohnzimmer blind to a certain position but it always moves it up to 100% :(

anyone knows what could be wrong ?

michael...@outlook.com

unread,
Aug 1, 2015, 9:01:42 AM8/1/15
to openhab
Hey Arnold

Did you so the calibration? It can ne done from habmin with Parameter 29...

Try to remove everything execpt die ID from the binding {zwave="9"}

Regards
Michael

Lars K

unread,
Aug 2, 2015, 5:35:39 AM8/2/15
to openhab
Yes. This sounds like a calibration issue. I do (until now) not own any Z-Wave device, but a lot of Homematic rollershutter actors.
I have to tell the actors how much time they usually need to go from 0% to 100% and vice versa. Out of this information the actors can calculate any percentage in between.

Arnold Maderthaner

unread,
Aug 2, 2015, 1:11:48 PM8/2/15
to openhab
hi !

Thanks for all your help - after calibration it works now :) !!!

yours

Arnold

Arnold Maderthaner

unread,
Aug 2, 2015, 3:59:10 PM8/2/15
to openhab
one more question  - is it also possible to switch from the current state to the previous (fe. that if a switch goes from off to on i move to 20% and if it goes from on to off it should move back to the position it was before I moved it to 20%) ? is there some inbuilt mechansim or should I store the state before I move it to 20% in a certain item ?
Reply all
Reply to author
Forward
0 new messages