OpenHab App Rollershutter control

Hi,

Maybe would be possible to make a new feature in Openhab App?
If i have a Rollershutter item, i have the possibility to up, down and stop. If i long click on the item, i can set a value for nfc tag…whatever is it.

Would be maybe possible to add a function with double click on the item example where i could send a value to the rollershutter, with a numeric input box or from a list like by this nfc thing. there would be listed (0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100)

Ty

No. And it’s not needed.
You can use a proxy item of Number type and a “Selection” type in sitemap (I guess it would also work with a Setpoint).
Then create a rule to trigger on that new item and send the receivedCommand to your rollershutter item.

You don’t even need a proxy item:

Rollershutter myRollershutter "My Roller Shutter [%d %%]" { ... }

Sitemap:

Switch item=myRollershutter // that gives you three buttons UP/STOP/DOWN
Switch item=myRollershutter mappings=[25="25%",50="50%",75="75%"] // that gives you three buttons 25%/50%/75%
Selection item=myRollershutter mappings=[UP="UP",25="25%",50="50%",75="75%",12="12%"] // gives you an even longer list
Setpoint item=myRollershutter minValue=0 maxValue=100 step=5 // set Position in 5% steps 

There is absolutely no need for a proxy item or a rule. All those Widgets can be used at the same time!

2 Likes

Hi, thanks for the advice. i tried, but something is wrong with the whole rollershutter thing. nothing from the above sitemap entrys worked really perfect. The rollershutter begins to work, but dont do what should, the value which represence the state after moving is not that what i set in the app and so on. So the whole thing is very very strange

Did you calibrate your shutters ? Is percentage inverted (there’s an option on the thing to invert it) ? Anyway you need to give way more details on your setup. What type of device is it ?

Hi, thanks for your answer.
Yes the percentage is inverted. The item is a rollershutter. The physical item is a Qubino Roller Shutter. I use still the OH 2.4 stable version.
The biggest problem atm that if i open or close the shutter, than it dont deliver the real value in % where it stay after the motor is off, and the power usage of the motor is not set back to 0 after the motor is off.

Here is a small copy from the log:
2019-07-29 10:57:44.340 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T10:56:44.351+0200 to 2019-07-29T10:57:44.351+0200

2019-07-29 10:58:01.696 [ome.event.ItemCommandEvent] - Item ‘Stairs_Shutter’ received command 50

2019-07-29 10:58:01.700 [nt.ItemStatePredictedEvent] - Stairs_Shutter predicted to become 50

2019-07-29 10:58:01.704 [vent.ItemStateChangedEvent] - Stairs_Shutter changed from 30 to 50

2019-07-29 10:58:03.272 [vent.ItemStateChangedEvent] - Stairs_Shutter changed from 50 to 21

2019-07-29 10:58:03.359 [vent.ItemStateChangedEvent] - Stairs_Shutter_Electric_Meter changed from 113.8 to 136.1

2019-07-29 10:58:03.362 [GroupItemStateChangedEvent] - Shutter_Electric_Meter changed from 113.8 to 136.1 through Stairs_Shutter_Electric_Meter

2019-07-29 10:58:44.341 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T10:57:44.351+0200 to 2019-07-29T10:58:44.352+0200

2019-07-29 10:59:44.341 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T10:58:44.352+0200 to 2019-07-29T10:59:44.353+0200

2019-07-29 11:00:44.348 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T10:59:44.353+0200 to 2019-07-29T11:00:44.353+0200

2019-07-29 11:01:44.343 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T11:00:44.353+0200 to 2019-07-29T11:01:44.354+0200

Read and answer the rest of my post please if you want help. Change the option on the thing to un-invert percentage.

Yes, i used the autocalibration function and the invert percentage is set. the physical shutter is in the right position after the command, but the values which are showed in OH are wrong.

What type is the rollershutter ?
So the only problem left is wrong report of closure percentage ?
(es macht keinen Spass, Leuten die Hilfe wollen alles aus der Nase ziehen zu müssen …)

Dann bitte frag eindeutig. Ich wurde gerne deine Frage beantworten, aber ich habe keine Ahnung, was du meinst unter “what type of rollershutter”
Sieht wie das hier aus.
download

Motor ist 220V keine Ahnung der Hersteller. die Z-Wave item ist wie ich geschrieben habe eine Qubino Roller Shutter:
http://manuals-backend.z-wave.info/make.php?lang=en&sku=GOAEZMNHCD1

Nee so läuft das nicht. Davon abgesehen daß man ja schon hätte darauf kommen können daß es um Config-Einstellungen geht und darum der Aktor gemeint gewesen sein muß, mußt Du solche Infos von Anfang an mitliefern.


Does the actuator send a zwave message with a report after you operate the shutter ?
Is your lifeline/association #1 pointing at the zwave controller ?

Sorry im a full newbie with this things. No it was associated to node1_1(dont know what this is) even if i changed that to controller before. Now i changed to controller again. I make a restart of openhab and Linux to see if the value stay and than i test the functionality again. I would report what i found out. Thanks for the advice. I would write soon

Not needed.

Make sure to use habmin rather than PaperUI to configure zwave devices.
To see messages, enable zwave debugging (and if you’re about to ask “how” now then go read the documentation please).

So the change is there just till i restart openhab. Not important if i set the association with Paper UI or with HABMIN, after i restart the openhab, in all association group except the first one stay node1_1, the first one is empty.

I copied the zwave log where i click the save button in habmin, maybe it helps. I hope i copied the right one:

node9.txt (42.0 KB)

There’s bugs in the display. Better use habmin as it’ll only updates changed parameters while PaperUI re-sets everything.

If I didn’t glance too fast it only contains association related messages. I’m looking for a shutter report. Did you change shutter state while recording the log ?

By this log i used the HABMIN.
No, the log is just about the setting the association, because after this i tried to restart the openhab and the association was gone again, so i tough maybe there is already a problem.

You wouldn’t see those msgs if the association didn’t work so it does as I said there’s a bug that can affect the display.
Now move on and generate a shutter report

The Shutter was on 100% so complet full, but showed a value of 56% and in off state a power usage of 111,7W.
By this position i sent a command to open to 50%. The shutter moved to the right position, but the value changed first from 56 to 50 and after this from 50 to 94(the value 94 shows a lot of time). The power consumption has changed from 111,7W to 138,9W and stayed there even after the motor is off and the power consumption should be 0W.

2019-07-29 14:47:18.703 [ome.event.ItemCommandEvent] - Item ‘Stairs_Shutter’ received command 100
2019-07-29 14:47:18.708 [nt.ItemStatePredictedEvent] - Stairs_Shutter predicted to become 100
2019-07-29 14:47:18.718 [vent.ItemStateChangedEvent] - Stairs_Shutter changed from 7 to 100
2019-07-29 14:47:20.287 [vent.ItemStateChangedEvent] - Stairs_Shutter changed from 100 to 56
2019-07-29 14:47:20.372 [vent.ItemStateChangedEvent] - Stairs_Shutter_Electric_Meter changed from 109.6 to 111.7
2019-07-29 14:47:20.376 [GroupItemStateChangedEvent] - Shutter_Electric_Meter changed from 109.6 to 111.7 through Stairs_Shutter_Electric_Meter
2019-07-29 14:47:52.231 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T14:46:52.202+0200 to 2019-07-29T14:47:52.202+0200
2019-07-29 14:47:56.220 [ome.event.ItemCommandEvent] - Item ‘Stairs_Shutter’ received command 50
2019-07-29 14:47:56.224 [nt.ItemStatePredictedEvent] - Stairs_Shutter predicted to become 50
2019-07-29 14:47:56.230 [vent.ItemStateChangedEvent] - Stairs_Shutter changed from 56 to 50
2019-07-29 14:47:57.799 [vent.ItemStateChangedEvent] - Stairs_Shutter changed from 50 to 94
2019-07-29 14:47:57.885 [vent.ItemStateChangedEvent] - Stairs_Shutter_Electric_Meter changed from 111.7 to 138.9
2019-07-29 14:47:57.888 [GroupItemStateChangedEvent] - Shutter_Electric_Meter changed from 111.7 to 138.9 through Stairs_Shutter_Electric_Meter
2019-07-29 14:48:52.234 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T14:47:52.202+0200 to 2019-07-29T14:48:52.204+0200
2019-07-29 14:49:52.235 [vent.ItemStateChangedEvent] - CurrentDate changed from 2019-07-29T14:48:52.204+0200 to 2019-07-29T14:49:52.205+0200

Here is the log from the time this happend:
node9_1.txt (53.2 KB)

You are receiving reports but I don’t know why the actuator sends a wrong percentage. Eventually try calibrating again, try association #7 to controller (see manual) or go ask the manufacturer support.

I have just 5 association groups. I try a manual calibrating and if dont works, i would try to get info from the manufacturer.

Thank you very much for your time and that you looked at this.