zpos is an additional position you can trigger(actually two positions). “vShutterControl” was just a name for the virtual thing, that came to my mind.
The frickelzeugs.de shutter program has not only up and down, but a position in the middle that you can trigger. You can set times for four functions:
up-time: when you trigger up - the time the program holds the up output active - e.g.: 19sec
down-time: when you trigger down - the time the program holds the down output active - e.g.: 15sec
zpos-time when state is up: when you trigger zpos - the time the program holds the down output active - e.g.: 9sec
zpos-time when state is down: when you trigger zpos - the time the program holds the up output active - e.g: 3sec
I have my wall pushbutton with an up and down button and a program(from frickelzeugs.de too), that can recognise if i just push or hold for a little longer. So let’s say the shutter is up - if i just push down short, the shutter goes down for 15sec(that is totally closed), but if i hold down (for about a second(you can configure that too)) it goes 9 sec down(that is down with the little spaces open).
The thing wouldn’t have to hold up or down - as you can directly trigger zpos, but i don’t want to have another button on my wall for that.
As the program knows the times the shutter needs to go down and up, it counts them and therefor knows the state of the shutter. You can read its state and visualise it in openhab. I have little windows with either open, middle or down state. Therefor i currently have this thing:
Thing plclogo:analog:Logo_1_VW_452 [ block="VW452", threshold="1" ]
that is 0, 1 or 2 then. I transfer this with my shutter rule to state 100, 50 and 0 of my virtual shutter item (i called them Proxy_…).
That would make, close to what @BlackAlpha said:
Thing plclogo:button:VirtualShutter01 [up="VB0.0", zpos="VB0.1", down="VB0.2", position="VW50"]
and i don’t know if possible the position directly transferred from 0,1,2 to 100,50,0…
How would the corresponding item look like? Can we do this with the Rollershutter item?