[BTicino/OpenWebNet] New openHAB2 binding ready for testing

Tags: #<Tag:0x00007f2fb06b58a0> #<Tag:0x00007f2fb06b5760> #<Tag:0x00007f2fb06b5620>

Hi Michele, could you give me some indication on how to configure the scenario control unit. I can’t figure out how to use OH with F420.
Thank you

what would you like to manage?
Currently the binding does not support any type of scenario management.
Eventually open a new topic and explain better what you would like to do, we can evaluate and give you support

Hi @massi,

have you seen that a patch for rollershutter management through Google Assistant has been published?

How this affects the binding behaviour?

Yes, it has ben (finally) added to the Google Assistant adaptor.
However there is bug at the moment: open/close commands from Google are not correctly mapped to OH UP/DOWN commands.

Regarding the openwebnet binding: it’s already compatible since items created automatically with PaperUI (Simple Mode item linking: Configuration > System > Item Linking > Simple mode > SAVE ) will get automatically the correct tag from the binding: in particular items associated with shutter channels will have the Blinds tag.

If you configured items with text file (.item) you can add the tag following the example in the README.

After the Blinds tag is set, just say “Sync my devices” and Google Assistant will find the Rollershuter.

Thank you massi,
I have done some tests after implementing the new tag:

  1. I confirm that open/close commands work in the opposite way.
  2. % commands are different: e.g. “roller shutter at 50%” is not recognized anymore, you have to say “set rollershutter at 50%”
  3. From the google home app you cannot control the rollershutter, only voice commands (I don’t understand if this is a google limitation or a openhab lack of integration)

I also noticed this.
Maybe you can explain the problem in the main Google assistant thread to see feedback from others.

It has been experienced also by other users in that thread, I added my own to understand if it is like that for everyone.

Is there a way to send command to the groups created in the bticino gateway? (e.g. turning off all the lights)

Is there a way to use a bticino button (not actuator) to do something in Openhab? (e.g. sending an email)

This has been discussed in the past but maybe in the last version of the binding it became possible

currently not possible.
We are evaluating a new bus called bus_command, but I don’t know the timing, we are stuck with implementations for changes to the new build system.
Momentarily, if you have a scenario module type MH202, you can create a rules in the MH and start it using the CEN or CEN + command and configure the CEN or CEN + command in OH

If you configure it as CEN or CEN + you can use a rules to send notifications or emails

Interesting thank you!

I will give it a try, just for fun because I have an unused button :smile:

I noticed that in my inbox is appearing a new discovered device (switch) with where 51:

the odd thing is that I already have that thing/item configured:

any idea why?

I assume it’s connected to Issue #30
It has been resolved, you have to wait for the next version here.

maybe, but I don’t recall configuring that thing manually, I think it was auto-discovered.
is there a way to check if a thing was added manually?
I only use paper ui for bticino things, no files

There is no way that I know of
Try to delete it and repeat autodiscovery

If I were you, I would switch to a file configuration.
You have a lot more options (group, icon, sitemap etc …)

Looking at the logs I found these seemingly errors:

2019-06-02 09:59:54.888 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  ownId=18.51
2019-06-02 09:59:54.891 [DEBUG] [bnet.handler.OpenWebNetEnergyHandler] - ==OWN:EnergyHandler== updateActivePower() for thing: openwebnet:bus_energy_central_unit:ef0da2a6:51
2019-06-02 10:00:00.198 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#13**#1*00*02*06*2019##
2019-06-02 10:00:00.200 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## handleManagementDimension not processed
2019-06-02 10:00:00.203 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#13**#0*10*00*00*##
2019-06-02 10:00:00.203 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  GatewayManagement WHAT = null
2019-06-02 10:00:00.206 [DEBUG] [org.openwebnet.OpenGatewayBus       ] - ##gw-openwebnet-BUS## handleManagementDimension not processed
2019-06-02 10:00:00.208 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  GatewayManagement WHAT = null
2019-06-02 10:00:00.872 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*158##
2019-06-02 10:00:00.876 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  ownId=18.51

2019-06-02 10:01:44.516 [DEBUG] [bnet.handler.OpenWebNetEnergyHandler] - ==OWN:EnergyHandler== For WHERE=51 subscribing to active power changes notification for the next 10min
2019-06-02 10:01:44.520 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#18*51*#1200#1*10##
2019-06-02 10:01:44.523 [DEBUG] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## CANNOT read from socket: read returned -1
2019-06-02 10:01:44.526 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## read returned -1
2019-06-02 10:01:44.527 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## let's try with a NEW SESSION...
2019-06-02 10:01:44.529 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## Trying openCommandSession() socket....  (
2019-06-02 10:01:44.534 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - ##gw-openwebnet-conn## ... starting HANDSHAKE ... 
2019-06-02 10:01:44.537 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#*1##
2019-06-02 10:01:44.539 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *99*0##
2019-06-02 10:01:44.543 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *98*2##
2019-06-02 10:01:44.545 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *#*1##
2019-06-02 10:01:44.550 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#03060603130703091512020111010000130302041206060210040013140000121215030514120115021403080606151003150412070314050103060714050208##
2019-06-02 10:01:44.556 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *#06110607010214130813030706150401050402090907151414030305070002090403121308141010011000121412130012030611021115100414151204060912*05020614040306130408080701101515070905151210070507090211070902021002091108021500140003100108000208110315000709070208130505061305##
2019-06-02 10:01:44.560 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM RECEIVED   <<<<<<====== *#03141303030814050911000214040310090501120410060712080704041308090005051315100812120911070302080402070904100504120107140805061205##
2019-06-02 10:01:44.564 [DEBUG] [org.openwebnet.bus.MyHomeConnection ] - COM SENDING    ======>>>>>> *#*1##
2019-06-02 10:01:44.567 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - ##gw-openwebnet-socket## ... CONNECTED command session
2019-06-02 10:01:44.569 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *#18*51*#1200#1*10##
2019-06-02 10:01:44.674 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*157##
2019-06-02 10:01:44.678 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  ownId=18.51

The first part seems something not supported by the gateway.

In the second part of the logs I don’t understand why the reconnection is happening: is it a standard behaviour or something is not working properly? (it happens usually about every 10 minutes, sometimes earlier)

Hi All,
Starting from today i’m able to see myHomeUp skill in google assistant up. I’ve configured eliot account and i’m discovering lights from GA app with native integration. Unfortunately as of now it seems that scenarios and shutter are not manageble, even if myHomeUp account associated in GA show lot of elements not manageble (visible in the home) yet

Maybe bticino guys has to ask Massi for support :slight_smile:

Hi All,

I am still very clumsy when it comes to opening a new topic. I did, but I am not sure if I should post here first just to let people know (at least those that can answer my questions!). So I repeat the message here. Sorry for the duplicate, please reply there!

Hi all,

I have a MHS1 gateway, an F420 scenario module and an eight-button scenario command LN4652. All of them have been recognized by MyHome Suite and are configurable. However, the only thing I can do with the F420 is to assign it a WHERE. I am just starting to play with scenarios using but I’ve understood that the only way I can record a scenario into the F420 (correct me if I am wrong) is manually: start recording (button on the F420), push a button on the command, do in sequence the commands you want the scenario to execute when activated, push again the button on the command to stop recording.

Point is that F420 do all of this using OWN frames (see the WHO_0.pdf document on the myhome site) and it would be much more interesting (to me at least!) to program the F420 using a batch configuration file.

Looking around I have seen that for this purpose there is a contributed software called ScenarX that can do the job I am looking for. Unfortunately, I think it talks with a F454 (and not with my MHS1) because there is no way to send a password to the gateway (Connessione non disponibile).

… is this something worth exploring? Although the scenario configuration can be done in OH, I still think it is convenient to have a scenario module in the system if it can be easily programmed. I would very much prefer to use OH for some high level scenario that can’t be realized in the myhome system, leaving the simpler stuff to the F420. Note that the F420 is relatively cheap and it can store up to 16 scenarios.

Hi Giuseppe,

can you please share the link to configure an eliot account? I looked everywhere but was unable to find the page…:pensive:

You have to login into myHomeUp app by using UserCode of your myHomeServer1 (not the installer code). Then going to Other menu you will find ‘integration’ menu and there the connection with Eliot account. If you don’t have one, you can create it directly following istruction and your myhomeserver1 configuration