[BTicino/OpenWebNet] New openHAB2 binding ready for testing

`

2019-04-10 11:25:24.579 [INFO ] [org.openwebnet.OpenGatewayZigBee ] - SERIAL SENDING >>>>>>>>>>>>>>>>>>>>>>>> *1*0*0#672#3401#9##

`

 *1*0*0#672#3401#9##

I do not use Zibeeg
But there is something wrong.
The OWN code you posted using a WHERE = 0 is a general light off command, not yet supported.
Check it out, you’re doing something wrong.

When I turn on I have the code one via open hab but when it’s the physical switch anything at all

*1*1*0#672#3401#9##

Better to wait for @massi, I have no experience with Zigbee

Okay, Thanks :slight_smile:

zigbee is used by not so many people and the latest of the binding has a bug on it. see personal message I sent you
M

Guys,

some problem here. Switches are discovered correctly, and I can add an Item properly to them. However, when I try to switch on a Switch item from openHAB, I heard the click of the physical, but nothing happens.

Any suggestion?

Thanks in advance.

You hear the bticino actuator clicking but nothing happens?
Probably your bulb is burnt :smile:

Nope. The led bulb works; I can switch the light on both physically, and from MyHome_Up application.

Hi Riccardo, it’s’ a strange behaviour and difficult to understand without logs.
You should set log level to DEBUG (see README for info) and post here (using code fences!) the relevant log when you try to activate a light from OH2

Ok, many thanks for the response. I will activate logs, and I will let you know.

1 Like

Hello,
I’m working with OpenHab 2.4.0 and OpenWebNet Binding (2.5.0.M2-1). The system is based on F453AV web server.
I’m trying to make a rule where I use a “received command” of roller shutter as trigger.
I notate a strange behavior:
if I command roller shutter via paper UI I can see the changing in log (and I can use the received command in rule) but when I send a command via physical devices (or even via mobile), I don’t see anything in log and the rules doesn’t work.
Instead, for the switches (light) the behavior is different: the command are sees both via paper UI and physical devices.
Does anyone could help me ?
Thanks
Emilio

@massi, I turned on the logs using DEBUG level, as requested. When I try to switch the light on from the openHAB application, the application appends the following records:

2019-04-14 21:59:28.478 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *#18*51*113*172##
2019-04-14 21:59:28.479 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  ownId=18.51
2019-04-14 21:59:28.479 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  ownId=18.51 has NO DEVICE associated, ignoring it
2019-04-14 21:59:34.293 [DEBUG] [ebnet.handler.OpenWebNetThingHandler] - ==OWN:ThingHandler== handleCommand() (command=ON - channel=openwebnet:bus_on_off_switch:MYHOMESERVER1_000350a42660:02:switch)
2019-04-14 21:59:34.294 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== handleSwitchCommand() (command=ON - channel=openwebnet:bus_on_off_switch:MYHOMESERVER1_000350a42660:02:switch) . 
2019-04-14 21:59:34.294 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== toWhere(ChannelUID) ownId=1.02
2019-04-14 21:59:34.294 [INFO ] [g.openwebnet.bus.MyHomeJavaConnector] - COM SENDING   ============>>>>>>>>>>>> *1*1*02##
2019-04-14 21:59:34.338 [INFO ] [g.openwebnet.bus.MyHomeSocketFactory] - COM RECEIVED  <<<<<<<<<<<<============ *#*1##
2019-04-14 21:59:34.379 [INFO ] [org.openwebnet.OpenGatewayBus$a     ] - MON RECEIVED  <<<<<<<<<<< *1*1*02##
2019-04-14 21:59:34.380 [DEBUG] [bnet.handler.OpenWebNetBridgeHandler] - ==OWN==  ownId=1.02
2019-04-14 21:59:34.380 [DEBUG] [et.handler.OpenWebNetLightingHandler] - ==OWN:LightingHandler== updateLightState() for thing: openwebnet:bus_on_off_switch:MYHOMESERVER1_000350a42660:02 

What the hell is going on?

Many thanks,
Riccardo

Hi Emilton,
welcome.
For rules with roller shutters you have to wait for a new implementation, see here.
Roller shutters have a percentage status (%)

OK. Thank you very much for the quick feedback
Emilio

hi @massi

thank you very much for this incredible work!
I test it on PC but soon I try to play it on Raspberry Pi

Welcome Vincenzo (@bx67212)! glad it works well for you!
massi

1 Like

Hi Riccardo,
the log has nothing wrong, only the WHERE part (address of the light) looks suspect: “02” looks more like an area (room) than a single light point.
Can you check from your MyHome configuration what is exactly the WHERE address of the light you are testing?
Also another useful test is:

  • keep the log open
  • switch on the light ON using the physical button
  • then swith OFF the light using the MyHome_Up application

(do not use openHAB during this test)
then send here only the relevant part of the log

bye Massi

Woooooow

today I have succesfully run this top binding on a pi3b+

thanks to @Joan_Lorenzo for [Updating repositories and upgrading installed packages… FAILED] solution

thanks to @peter_juenger for [Open Karaf console on Pi via ssh?] solution

thanks to @yoshi for [How to add tags to items?] solution

and grazie, grazie mille a @massi for this amazing work

Now Alexa can use myhomeserver 24/24

2 Likes

thank you very much for this - works really great!! any plans to support who 16 - Sound System/Audio? that would be really awesome

sorry - seems like who 16 is deprecated - the current seems to be Who = 22 Sound Diffusion