[BTicino/OpenWebNet] New openHAB2 binding ready for testing

Still working for me although it did go offline. Restart fixed it.

I tried both restarting it and re-initializing all routers and devices, but no luck.

I enabled the logs for the openwebnet binding and here is what it prints:

2020-03-14 19:48:34.803 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - #############################################################################################

2020-03-14 19:48:34.805 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - ==OWN:BridgeDiscovery== constructor()

2020-03-14 19:48:34.807 [DEBUG] [ery.OpenWebNetBridgeDiscoveryService] - #############################################################################################

2020-03-14 19:48:35.138 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== createHandler()

2020-03-14 19:48:35.153 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== creating NEW BRIDGE Handler

2020-03-14 19:48:35.156 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== registerDiscoveryService()

2020-03-14 19:48:35.167 [DEBUG] [ery.OpenWebNetDeviceDiscoveryService] - ==OWN:DeviceDiscovery== constructor for bridge: 'openwebnet:bus_gateway:mybridge'

2020-03-14 19:48:35.168 [DEBUG] [ery.OpenWebNetDeviceDiscoveryService] - ==OWN:DeviceDiscovery== activate()

==> /var/log/openhab2/events.log <==

2020-03-14 19:48:35.190 [hingStatusInfoChangedEvent] - 'openwebnet:bus_gateway:mybridge' changed from UNINITIALIZED to INITIALIZING

==> /var/log/openhab2/openhab.log <==

2020-03-14 19:48:35.202 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== BridgeHandler.initialize() 

2020-03-14 19:48:35.203 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== Bridge type: openwebnet:bus_gateway

2020-03-14 19:48:35.207 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== discoveryByActivation=false

2020-03-14 19:48:35.208 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== Creating new BUS gateway with config properties: 192.168.1.130:20000, pwd=*********

2020-03-14 19:48:35.230 [DEBUG] [g.openwebnet.bus.MyHomeJavaConnector] - ##gw-openwebnet-connector## Created MyHomeJavaConnector 192.168.1.130:20000

2020-03-14 19:48:35.242 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN== Trying to connect gateway...

==> /var/log/openhab2/events.log <==

2020-03-14 19:48:35.242 [hingStatusInfoChangedEvent] - 'openwebnet:bus_gateway:mybridge' changed from INITIALIZING to UNKNOWN

==> /var/log/openhab2/openhab.log <==

2020-03-14 19:48:35.248 [ERROR] [org.openwebnet.AbstractOpenGateway  ] - ERROR IN Java $MODULE$: connection cannot be established

2020-03-14 19:48:35.258 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== createHandler()

2020-03-14 19:48:35.276 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== creating NEW LIGHTING Handler

2020-03-14 19:48:35.279 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== constructor

==> /var/log/openhab2/events.log <==

2020-03-14 19:48:35.284 [hingStatusInfoChangedEvent] - 'openwebnet:bus_on_off_switch:mybridge:KIT_main_switch' changed from UNINITIALIZED to INITIALIZING

==> /var/log/openhab2/openhab.log <==

2020-03-14 19:48:35.317 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== initialize() thing=openwebnet:bus_on_off_switch:mybridge:KIT_main_switch

2020-03-14 19:48:35.337 [INFO ] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN:BridgeHandler== registered device ownId=1.11, thing=openwebnet:bus_on_off_switch:mybridge:KIT_main_switch

==> /var/log/openhab2/events.log <==

2020-03-14 19:48:35.337 [me.event.ThingUpdatedEvent] - Thing 'openwebnet:bus_on_off_switch:mybridge:KIT_main_switch' has been updated.

==> /var/log/openhab2/openhab.log <==

2020-03-14 19:48:35.339 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== associated thing to bridge with ownId=1.11

2020-03-14 19:48:35.344 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== initialize() thing=openwebnet:bus_on_off_switch:mybridge:KIT_main_switch

2020-03-14 19:48:35.348 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== createHandler()

2020-03-14 19:48:35.351 [DEBUG] [et.internal.OpenWebNetHandlerFactory] - ==OWN:HandlerFactory== creating NEW LIGHTING Handler

2020-03-14 19:48:35.353 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== constructor

==> /var/log/openhab2/events.log <==

2020-03-14 19:48:35.375 [hingStatusInfoChangedEvent] - 'openwebnet:bus_on_off_switch:mybridge:KIT_main_switch' changed from INITIALIZING to UNKNOWN: waiting state update...

2020-03-14 19:48:35.377 [hingStatusInfoChangedEvent] - 'openwebnet:bus_on_off_switch:mybridge:KIT_under_switch' changed from UNINITIALIZED to INITIALIZING

==> /var/log/openhab2/openhab.log <==

2020-03-14 19:48:35.377 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=REFRESH - channel=openwebnet:bus_on_off_switch:mybridge:KIT_main_switch:switch)

2020-03-14 19:48:35.379 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== initialize() thing=openwebnet:bus_on_off_switch:mybridge:KIT_under_switch

2020-03-14 19:48:35.378 [WARN ] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== Gateway is NOT connected, setting thing=openwebnet:bus_on_off_switch:mybridge:KIT_main_switch to OFFLINE

It stays offline even if I add the HomeServer through PaperUI…

Any ideas?

same problem, I fear that the binding has expired

Restarted just now and its stays off line… So its dead now :frowning:

With no massimo we are now sunk

Massimo in no more available?

Don’t think so. He has not posted since Jan this year. Doesn’t answer PM’s either but does seem to be lurking

image

Ahi ahi

same problem: restart did not fix it

OMG, just installed PiHole and thought this was putting my gateway to OFFLINE…seems the binding expired…Massimo…we need you dearly!!

Funny… ha ha…its not, but sadly I was expecting this to happen at some point and was just testing my openwebnet binding Offline automatic detection (it works) and auto restart (almost working) using a rule and a script. I will post the code if openwebnet gets fixed but maybe I am pessimitistic because from what I know already it doesn’t seem likely. Michele aka Gozzilla could maybe have helped, if Massimo is unable or unwilling for some reason, but he too disappeared a while ago.

PiHole is great, been using that for a long time now :slight_smile:

edit… while trying to figure why Massimo does not post anymore I noticed that his last posts in Jan 2019 were concerning this very topic… expired binding… coincidence?

@m4rk do you want to say the solution is to install the beta 9.1?

I do not know what you mean. Could you please explain more.

no i do not think so. this worked back then in january 2019 because the old binding expired. but now the actual binding is expired and i suppose nothing will work.

Sorry, I‘ve seen you added a link to a solved gateway problem. I thought this could be the solution to the actual expired binding.
Anyway, I‘m following this thread since I first started with OH. Having a Bticino bus system for 10 years now, I‘ve been struggling to get it to work with OH2. I‘m no programmer, every bit of code has to be googled. I‘m learning, but with no base knowledge…it‘s not easy. I don‘t complain! I admire the work of Massimo and the devotion of everyone.
My system (Alexa, OH2, Bticino) worked until yesterday. Is there no way to get a solution? The code is there…
If you know another way of communication (Line, Discord), feel free to send me a link.

Hi, I posted the link not as the solution to the current problem but to show that the last input from Massimo was concerning this same problem but for a previous version. It looks like we are here again but this time with no Massimo. I guess he knew we would run into the same issue around about now unless there was a more permanent solution; which I think he was working on for an official OH release of the binding.

So all we can do is wait and hope that @massi gives a sign of life and tells us his plans…

somebody here who knows if it would be possible to create a new jar-file when able to setup an eclipse-enviroment? are all needed files available on github?

sorry i am not a programmer and not able to do that, only thinking about solutions…

I already tried to install eclipse and got some install errors… its going to be a long haul … sigh… I have java sdk v13, maybe thats the issue :upside_down_face:

sorry i don´t know, i read somewhere that java 8 jdk is needed for eclipse ide

This is not funny. When he developed this binging he basically told everyone to switch from the old binding to this one because it was great etc etc. We all appreciated his work but now he doesn’t even tell us if he will publish a new version of it (I am afraid it will not happen) but he reads the replies.
Anyone knows a way we can use the files from this binding in order to create a new jar file and continue using the binding as it is?