[BTicino/OpenWebNet] New openHAB2 binding ready for testing

Is it possible binding has expired?

@massi So I guess that your binding couldn’t make it for the 2.5 release, unfortunately ? What is the recommended way to install and use the binding with OH 2.5 ? Thank you in advance.

The new Alexa skill features are now available

https://github.com/openhab/openhab-alexa/blob/master/USAGE.md#setup

https://github.com/openhab/openhab-alexa/blob/master/USAGE.md#semantic-extensions

I have open close, raise and lower working with the BUS blinds without the need for the Alexa routine and proxy switch work around.

I am still playing around with the possibilities but here is what I have so far.

Rollershutter Test "Test blinds" {alexa="RangeController.rangeValue" [category="EXTERIOR_BLIND",supportedRange="0:100:10", unitOfMeasure="Percent", actionMappings="Close=100,Open=0,Lower=(+10),Raise=(-10)"], channel="openwebnet:bus_automation:Screen10:55:shutter" }

am not sure how I do a ‘stop’ so I asked here

edit… short answer = No STOP semantic yet. Possible skill work around. See above link.

Mark,

thanks for the info, please let us know when you have a stop command working.
Could you post the thing asociated to this item?

@massi
Hi Massimo with the new opengah 2.5 version would we finally have an official binding and therefore no expiration?

1 Like

I didn’t post the Thing as that was not changed. Its the standard Thing for a blind.

Regarding the STOP Alexa command. I am in discussion with the developer about how it might be done but I am not an expert. If anyone else here has an interest in this too please visit the Alexa skill thread and add your input:

Maybe @massi et al might have some better ideas than I on how to get the BTicino binding working better with the Alexa skill. In that case it would be good to discuss this now with the Alexa skill developer @jeshab while we have his attention :grinning:

eg There are also some discussions on Alexa issues with dimmers but I myself haven’t played with that part yet. eg Increase, Decrease commands.

thank you for your feedback with alexa and openwebnet binding: I have OH 2.4 on a synology nas and I would like to update do 2.5 M6 (?) but I’m afraid to lose something because I have a yamaha home theatre, spotity, alexa, btcino…habadmin graph, mysql persistence…

Hi everybody,

yesterday I have updated to OH 2.5 stable. Since then I’m getting this error:

2019-12-18 13:52:54.482 [WARN ] [org.apache.felix.fileinstall        ] - Error while starting bundle: https://github.com/mvalla/openhab2-addons/releases/download/own-2.5.0.M3/org.openhab.binding.openwebnet-2.5.0.M3.jar

org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.openwebnet [267]

  Unresolved requirement: Import-Package: gnu.io; version="[3.14.0,4.0.0)"

	at org.eclipse.osgi.container.Module.start(Module.java:444) ~[org.eclipse.osgi-3.12.100.jar:?]

	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:383) ~[org.eclipse.osgi-3.12.100.jar:?]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.4]

	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.4]

I have no connection to my OWN GateWay at the moment.
Have someone experienced the same behavior?

Hi again,

for some reason I focused on the message:

Unresolved requirement: Import-Package: gnu.io; version="[3.14.0,4.0.0)"

I just followed someone’s suggestion to install the Serial Binding (binding-serial1 - 1.14.0) and now it’s working.

Hope someone find this useful in case you’re in trouble :smiley:

You have to do these steps from the installation procedures again:

2. Activate Dependencies

After the binding has been installed, from Marketplace or manually, some features dependencies must be activated manually :

  • from Karaf console:
    • feature:install openhab-transport-serial
    • for openHAB 2.4.x:
      • feature:install esh-io-transport-upnp
    • for openHAB 2.5.x and later:
      • feature:install openhab-core-io-transport-upnp

The binding should now be installed: check in PaperUI > Configuration > Bindings .

After upgrading the binding to a new version, there is no need to activate dependencies again.

However dependencies must be activated again if you upgrade openHAB to a new version or clean its cache.

Hi Max!

I have done this in fact:

* feature:install openhab-transport-serial
* for openHAB 2.5.x and later:
* `feature:install openhab-core-io-transport-upnp`

But didn’t solve my problem. Only after installind the Serial Binding I got everything working… :thinking:

I have upgraded from an OH 2.4, don’t know if my setup is corrupt or not, OWN failure is just one of all problems I’m facing right now. I’ll try a clean setup these days…

Hi all,
i have a running setup with a openhabian on a raspberry pi 3 with the actual build openwebnet binding.

Now i have installed a second setup on a raspberry pi4 4gb also with the actual raspian and i have installed the openwebnet binding from the eclipse market. I see it in the bundle list and i see that it is installed in the addons.
think
Here is my problem :smiley:, i dont’ see the binding at Configuration -> Things -> +

Is this issue known?

BG Patrick

Hi,

I have voice commands now working with Alexa without need for an Alexa routine. ‘Alexa, Open, Close, Raise, Lower blind’ all work without Alexa routines or openHAB rules and proxy items. I now use the more capable v3 Alexa tagging. There was an issue with mixed language and locations like me. English language but in located Austria with .de Amazon server. However, Jeremy, the Alexa skill developer quickly fixed that bug.

The one missing command is STOP and for that I still need an openHAB work around. STOP will be added to the Alexa skill in a future update.

Here is the code with the stop work around: I will update it if needed later. It may need some polishing but it works.

items file

Group OfficeTest "Office test blind" {alexa="Endpoint.Other"}
String OfficeBlindStop "Stop office blind" (OfficeTest) {alexa="ModeController.mode" [supportedModes="STOP=STOP,UP=UP, DOWN=DOWN"]} //, expire="5s,command=STOPPED"
Rollershutter OfficeBlinds "Office blinds" (OfficeTest) {alexa="RangeController.rangeValue" [category="EXTERIOR_BLIND",supportedRange="0:100:10", unitOfMeasure="Percent", actionMappings="Close=100,Open=0,Lower=(+10),Raise=(-10)"], channel="openwebnet:bus_automation:Screen10:55:shutter" }

rules file

rule "STOP BLIND"
when 
    Item OfficeBlindStop changed to 'STOP'
then
    OfficeBlinds.sendCommand(STOP)
    Thread::sleep(1000)
    OfficeBlindStop.postUpdate('STOPPED')
end

Because of the work around in order to STOP a blind you must say …’ Alexa, Set office blind to stop’

I didn’t like that and so created an Alexa rule for saying…‘Alexa, Stop blind’

If @massi sees this it would be good to check the thread for the Alexa skill because the fix for the missing stop may require some collaboration, as I said in an earlier post

If you don’t need the STOP command to work or its fixed by an update, skill and or binding, then for natural blind commands to work natively you will only need one line of code like this:

Rollershutter OfficeBlinds "Office blinds" {alexa="RangeController.rangeValue" [category="EXTERIOR_BLIND",supportedRange="0:100:10", unitOfMeasure="Percent", actionMappings="Close=100,Open=0,Lower=(+10),Raise=(-10)"], channel="openwebnet:bus_automation:Screen10:55:shutter" }

Try to look under “bindings” instead of “things”

the same at all this points. I have it running on my Raspberry 3 and i see the difference :slight_smile:
Has anyone this setup? Raspberry pi4 and Raspian? with openhab?

Here are some improvements to the code I posted earlier for Alexa control of blinds:

Voice commands like…Lower, Raise, Increase, Decrease, Open, Close and others can now all work with just a single line of item code. No rule or Alexa routine is needed. If that is indeed all you need then just use item code for the Rollershutter item shown below without the group (OfficeBlind)

To get the STOP blind command to work you need more code and must say it like this for my example below…
‘Alexa, set office test to STOP’

In this case the item code will now need an additional Group item and with members comprising two controller items. Mode to capture the STOP, UP or DOWN commands and a range controller for all other commands. An openHAB rule is also needed to issue the BUS command STOP or UP, or DOWN when the mode string item is updated.

You can, if you want but its not necessary, refine it further so it also works with nicer voice command of :
‘Alexa, Stop Office test’

To do this you also need an Alexa routine for the spoken phrase
‘Alexa, Stop Office test’

The routine will then issue the actual command STOP to the Office test Rollershutter. When setting this up the app will offer the available choices for Office test. UP, DOWN, STOP.

Final code for items and rule with STOP workaround:

Group OfficeBlind "Office test" {alexa="Endpoint.EXTERIOR_BLIND"}
    String OfficeBlindCommand "Office blind command" (OfficeBlind) {alexa="ModeController.mode" [supportedModes="STOP=STOP,UP=UP,DOWN=DOWN", autoupdate="false"]} 
    Rollershutter Office_RollerShutter "Office blind [%d %%]" <blinds> (OfficeBlind,gAllBlinds) {alexa="RangeController.rangeValue" [supportedRange="0:100:10", unitOfMeasure="Percent", actionMappings="Close=100,Open=0,Lower=(+10),Raise=(-10)", stateMappings="Closed=100,Open=1:100"], channel="openwebnet:bus_automation:Screen10:55:shutter" }
rule "Office blind command"
when 
    Item OfficeBlindCommand received command STOP or
    Item OfficeBlindCommand received command UP or
    Item OfficeBlindCommand received command DOWN
then
    Office_RollerShutter.sendCommand(receivedCommand.toString)
end
1 Like

my Issue is solved. I have done a new installation and it works

Hi Guys,

Just to let you know that I’ve installed and configured this binding. I was able to move one of my roller shutter.

Thanks to @bastler for pointing me to this binding.

My flat is equipped with F454 bticino bus.
The following has been autodetected : 2 thermostat, 3 rollershutter, 5 Energy Central Unit, 8 switches.
(I feel it’s complete)

I’ve done this remotely (checking with a webcam that the rollershutter move when command so), I’ll complete the setup once back home.

I’m using a Docker image of OpenHab 2.5.0 (debian) running Synology (1813+);

The installation process was easy, no issue at all. (although it can be scary for some)
The bus was detected automatically, then the things as well.

I’m a bit surprised because I’m not using the default password, I would have expected to put it somewhere during the install.
(I tried before the v1 binding for bticino without success, but the bticino.cfg with ip & password was still there).

Or is it part of the UPNP ?

Where can I get notification about new release of the binding ?

Thanks,
Thomas.

Hi,
I noticed the blind position reporting seems inconsistent with my 19 blinds. eg After a blind open scenario has run to open all blinds I see in sitemap, BasicUI some reported as 100% and others 0% with some at 97 and 98%. The blinds open in staggered fashion and in stages to gently introduce light into the house in the morning. If I then command the fully open blinds with incorrect reported position either via wall switch of sitemap switch then they are then correctly reported. ie 0%

It seems the binding only updates at the point a BUS command is sent. Its not live or refreshed. eg If I send a down command and the position is reported as the ‘expected’ position of 100%. If I then repeat the down command before the blind is fully closed the position is reported as being the current position when the down command was sent. It doesn’t update again even when it has finally reached the fully closed position

How should it work?

Hi @paquerette, good that the binding works with your installation using OH 2.5.0.
Funny that you configured the rollershutter remotely! :slight_smile:

The binding tries to connect to the gateway using the default password (12345) then gives an error if it cannot connect. The fact that in your case it connected right aways has 2 explanations:

  1. you indeed have still set the default password :slight_smile:
  2. your Synology where docker and OH2.5.0 are run is in the “allowed range” of IPs for which the BTicino gateway does not require a password, you can check this in your BTicino gw configuration page.

No config is shared with the v1 binding, but just in case just delete the v1 config and restart OH.
No password is sent via UPnP, just the gw IP.

New releases of the binding will be notified here, of course.

massi

1 Like