openhab / openhab1-addons

Add-ons for openHAB 1.x
Eclipse Public License 2.0
3.43k stars 1.71k forks source link

[bticino] Dimmer - notifyEvent, Exception : null #5061

Open mario83la opened 7 years ago

mario83la commented 7 years ago

Hello,

I'v successfully implemented the bticino binding on openhab2. I created a dimmer Item: Dimmer MainLight "Main Light" (Floor) {bticino="if=default;who=1;what=0;where=74"}

I can control my light out of the web-ui but when I change the light level on my pyhsical switch in my bticino bus openhab raise following error:

[ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null

Appreciate any help on this and thanks for the great work at openhab and this binding!

Regards, Mario

watou commented 7 years ago

@TomDeVlaminck, would you be able to have a look?

TomDeVlaminck commented 7 years ago

Hi. Please provide the dimmer type and the interface you are using to communicate with the bticino bus. Also more logging is helpfull

mario83la commented 7 years ago

Hi Tom,

I'm using a MH200 as Gateway and a F414 Dimmer. When I trigger only a ON/OFF on my physical switch this comes back to openHAB without any problem. Only if I change the dimmer level on the physical switch I get the exception.

I'm quiet new to openhab, how can I provide you a more detailed log?

Regards, Mario

watou commented 7 years ago

how can I provide you a more detailed log?

Depending on your version of openHAB (1 or 2).

openHAB 1:

Edit logback.xml and add the line

<logger name="org.openhab.binding.bticino" level="TRACE">

or DEBUG instead of TRACE if better.

openHAB 2:

Connect to the console, like

ssh openhab@localhost -p 8101

password is habopen.

Then enter

openhab> log:set TRACE org.openhab.binding.bticino

You can watch the log right there with the following. Press Control-C to return to the prompt.

openhab> log:tail

Press Control-D to leave the console. Revert the TRACE or DEBUG back to INFO level after testing.

For both openHAB 1 and 2: find your openhab.log, which might be in /var/log/openhab[2]. Cut out excerpt(s) that could at all be relevant.

mario83la commented 7 years ago

Thanks watou. I'm using openHAB 2.

That's all log I get with loglevel on TRACE. I did some switch on / off / dim up / dim down actions. When I do a dimming the exception occures.

> 17:00:00.500 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'MainLight' received command 86
> 17:00:00.504 [INFO ] [marthome.event.ItemStateChangedEvent] - MainLight changed from NULL to 86
> 17:00:00.504 [INFO ] [ome.event.GroupItemStateChangedEvent] - Floor changed from NULL to 86 through MainLight
> 17:00:00.505 [INFO ] [ome.event.GroupItemStateChangedEvent] - gUG changed from NULL to UNDEF through Floor
> 17:00:00.505 [INFO ] [ome.event.GroupItemStateChangedEvent] - gOG changed from NULL to UNDEF through Floor
> 17:00:00.506 [INFO ] [ome.event.GroupItemStateChangedEvent] - gEG changed from NULL to UNDEF through Floor
> 17:00:00.691 [INFO ] [smarthome.event.ItemCommandEvent    ] - Item 'MainLight' received command 86
> 17:00:15.126 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
> 17:00:15.523 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
> 17:01:04.073 [INFO ] [marthome.event.ItemStateChangedEvent] - MainLight changed from 86 to 0
> 17:01:04.074 [INFO ] [ome.event.GroupItemStateChangedEvent] - Floor changed from 86 to 0 through MainLight
> 17:01:07.242 [INFO ] [marthome.event.ItemStateChangedEvent] - MainLight changed from 0 to 100
> 17:01:07.242 [INFO ] [ome.event.GroupItemStateChangedEvent] - Floor changed from 0 to 100 through MainLight
> 17:01:14.118 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
> 17:01:20.137 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
> 17:01:22.386 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
TomDeVlaminck commented 7 years ago

Is it a mh200 or mh200n?

mario83la commented 7 years ago

Sorry, yes it is mh200n

TomDeVlaminck commented 7 years ago

Please add debug code to log wat p_i_event variable contains. I have just acquired a dimmer, but have not upgraded to openhab2 yet. I plan to rewrite to a openhab2 plugin.

openhab1-addons/bundles/binding/org.openhab.binding.bticino/src/main/java/be/devlaminck/openwebnet/OpenWebNet.java

public void notifyEvent(ProtocolRead p_i_event) {
    for (IBticinoEventListener l_event_listener : m_event_listener_list) {
        try {
            l_event_listener.handleEvent(p_i_event);
        } catch (Exception p_ex) {
            logger.error("notifyEvent, Exception : " + p_ex.getMessage());
        }
    }
}
watou commented 7 years ago

I've built the binding with this change:

    public void notifyEvent(ProtocolRead p_i_event) {
        for (IBticinoEventListener l_event_listener : m_event_listener_list) {
            try {
                l_event_listener.handleEvent(p_i_event);
            } catch (Exception p_ex) {
                logger.error("notifyEvent({})", p_i_event, p_ex);
            }
        }
    }

download

mario83la commented 7 years ago

Thanks watou and Tom, I will try to test your new code today evening.

In the meantime, may I can ask you how to integrate the heating of Bticino? I'd like to add a Number Item which is representing the temperature of a room. My tests wasn't successfull with a WHO=4. {bticino="if=default;who=4;what=0;where=24"} Is there any documentation how to integrate the Heating?

I have a Bticino 3550 heating central and 4692 room controls and F430 actors.

watou commented 7 years ago

I don't know about integrating the Heating, but if there are any doc updates, please submit them to https://github.com/openhab/openhab1-addons/blob/master/bundles/binding/org.openhab.binding.bticino/README.md, and they will later be reflected here: http://docs.openhab.org/addons/bindings/bticino1/readme.html

TomDeVlaminck commented 7 years ago

I have also this setup for my heating but am bypassing the central itself

mario83la commented 7 years ago

How did you implemented it?

In my case the 3550 is integrated into my BUS and also openHAB getting the openwebnet frames from the 3550. I can see them in the extended trace. But how can I map that frames with WHO=4 to a openHAB item?

TomDeVlaminck commented 7 years ago

I do not use openhab for controlling the F430, i have written my own multizone soft to control the temperatures in our rooms. In the beginning i didnt have mony for a 3550 to spend so i combined onewire temp sensors with valves controlled by the f430. Now i have a 3550 (mainly because my soloution is not a stock one, should something happen to me, a normal cv guy / domotica guy wouldnt understand) and temp probes of bticino in every room, but i havent programmed it yet, because i didnt have time for it. Everything concerning heating needs to be programmed in openhab but it isnt different from the lighting. Events for F430 opening / closing can be mapped to switches. Temp probes can be mapped to floats. Controlling the 3550 should be done by selecting an option for the selected program or to override zones. For this i would use openhab2 as it looks more capable to support complex objects.

mario83la commented 7 years ago

Hi,

so after updating your JAR, following logs are created while pressing the pyhsical Switch for dimming the light:

22:16:17.438 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [10], WHERE [74] 22:16:18.848 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [31], WHERE [74] 22:16:18.848 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [31], WHERE [74] 22:16:18.866 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [9], WHERE [74] 22:16:18.866 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [9], WHERE [74] 22:16:19.367 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [31], WHERE [74] 22:16:19.367 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [31], WHERE [74] 22:16:19.396 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [8], WHERE [74] 22:16:19.396 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [8], WHERE [74] 22:16:19.896 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [31], WHERE [74] 22:16:19.897 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [31], WHERE [74] 22:16:19.923 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [7], WHERE [74] 22:16:19.923 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [7], WHERE [74] 22:16:20.505 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [31], WHERE [74] 22:16:20.505 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [31], WHERE [74] 22:16:20.507 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [1], WHAT [6], WHERE [74] 22:16:20.507 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [1], WHAT [6], WHERE [74]

Does this helps you?

TomDeVlaminck commented 7 years ago

Concerning the temperature probes, i have a probe on adres 15

22:31:10.758 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '#41500195##' now translate it to an event.

22:31:10.759 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [41500195] 22:31:10.759 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : temperature, Value : 19.5 22:31:10.759 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 4 22:31:10.759 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 15 22:31:10.759 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Temperature value 22:31:10.759 INFO b.d.o.MonitorSessionThread[:481] - 06/02/2017 22:31:10 Rx: 41500195 (Temperature value)

tdv.items :

Number Temperature_GF_Attic_Bticino "Temperature [%.1f °C]" (SensorTemperature, GF_Corridor){ bticino="if=default;who=4;what=0;where=15" }

But it doesnt translate to an event. Probably because i have an old openhab runtime running (1.6.0).

Your logging it counts down following the dimmer value. For example when i go from dimmed to 100% in steps of 10%. As I didnt add the code for the dimmer i need to take a look what is going on. I need to set up a development env for that.

22:43:29.555 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:29.555 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:29.555 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:29.556 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:29.556 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:29.600 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '1456##' now translate it to an event. 22:43:29.600 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [1456] 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 4 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:29.601 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:29.601 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:29.601 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [4], WHERE [56] 22:43:29.601 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:30.086 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:30.086 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:30.086 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:30.087 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:30.087 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:30.134 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '1556##' now translate it to an event. 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [1556] 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 5 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:30.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:30.135 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:30.135 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [5], WHERE [56] 22:43:30.136 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:30.605 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:30.605 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:30.605 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:30.605 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:30.605 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:30.605 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:30.606 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:30.606 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:30.606 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:30.606 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:30.606 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:30.606 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:30.652 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '1656##' now translate it to an event. 22:43:30.652 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [1656] 22:43:30.652 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:30.652 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 6 22:43:30.653 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:30.653 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:30.653 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:30.653 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:30.653 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:30.653 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:30.653 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:30.653 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [6], WHERE [56] 22:43:30.653 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:31.134 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:31.135 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:31.135 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:31.135 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:31.136 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:31.173 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '1756##' now translate it to an event. 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [1756] 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 7 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:31.173 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:31.174 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:31.174 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:31.174 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:31.174 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [7], WHERE [56] 22:43:31.174 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:31.655 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:31.655 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:31.655 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:31.655 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:31.655 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:31.655 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:31.656 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:31.656 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:31.656 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:31.656 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:31.656 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:31.656 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:31.702 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '1856##' now translate it to an event. 22:43:31.702 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [1856] 22:43:31.702 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:31.702 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 8 22:43:31.703 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:31.703 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:31.703 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:31.703 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:31.703 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:31.703 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:31.703 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:31.703 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [8], WHERE [56] 22:43:31.703 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:32.175 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:32.176 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:32.176 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:32.176 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:32.176 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:32.223 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '1956##' now translate it to an event. 22:43:32.223 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [1956] 22:43:32.223 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:32.223 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 9 22:43:32.223 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:32.223 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:32.223 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:32.224 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:32.224 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:32.224 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:32.224 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:32.224 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [9], WHERE [56] 22:43:32.224 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:32.704 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:32.705 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:32.705 INFO b.d.o.MonitorSessionThread[:827] - null 22:43:32.706 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [30], WHERE [56] 22:43:32.706 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:32.742 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '11056##' now translate it to an event. 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [11056] 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 10 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageDescription, Value : Light Dimmer 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:32.743 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156 22:43:32.743 INFO b.d.o.MonitorSessionThread[:827] - Light Dimmer 22:43:32.743 DEBUG o.o.b.b.internal.BticinoDevice[:210] - Gateway [default], Bticino WHO [1], WHAT [10], WHERE [56] 22:43:32.744 ERROR b.d.openwebnet.OpenWebNet[:176] - notifyEvent, Exception : org.openhab.binding.bticino.internal.BticinoGenericBindingProvider cannot be cast to org.openhab.binding.bticino.internal.BticinoBindingProvider 22:43:33.225 INFO b.d.o.MonitorSessionThread[:81] - Received OpenWebNet frame '13056##' now translate it to an event. 22:43:33.225 INFO b.d.openwebnet.ProtocolRead[:41] - Instance created for message [13056] 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : who, Value : 1 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : what, Value : 30 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : where, Value : 56 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : virtual, Value : false 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : messageType, Value : Lighting 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.class, Value : Light 22:43:33.226 INFO b.d.openwebnet.ProtocolRead[:47] - addProperty Key : object.name, Value : 156

mario83la commented 7 years ago

I also have a temp prob on address 15, after adding your line to my config I got following trace:

23:08:50.052 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [4], WHAT [null], WHERE [15]
23:08:50.053 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], RECEIVED EVENT FOR NumberItem [Temperature_GF_Attic_Bticino], TRANSLATE TO OPENHAB BUS EVENT
23:08:50.053 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
23:08:50.056 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [4], WHAT [1], WHERE [15]
23:08:50.056 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], RECEIVED EVENT FOR NumberItem [Temperature_GF_Attic_Bticino], TRANSLATE TO OPENHAB BUS EVENT
23:08:50.382 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [4], WHAT [null], WHERE [15]
23:08:50.382 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], RECEIVED EVENT FOR NumberItem [Temperature_GF_Attic_Bticino], TRANSLATE TO OPENHAB BUS EVENT
23:08:50.383 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
23:08:50.446 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [4], WHAT [null], WHERE [15]
23:08:50.446 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], RECEIVED EVENT FOR NumberItem [Temperature_GF_Attic_Bticino], TRANSLATE TO OPENHAB BUS EVENT
23:08:50.446 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null
23:08:50.594 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], Bticino WHO [4], WHAT [111], WHERE [#15]
23:08:50.595 [DEBUG] [nding.bticino.internal.BticinoDevice] - Gateway [default], No Item found for bticino event, WHO [4], WHAT [111], WHERE [#15]

May this help you. I'd really like to support on this integration but I'm not a JAVA expert. My previous integration was done on self-written python code. But as openHAB is a very powerful framwork I'd like to switch to it.

Depechie commented 6 years ago

Hey guys... I'm also stuck with these 2 exact same problems. So unable to get readouts from the temperature probes and unable to actually dim the dimmer ( can turn if on and off ).

Running MH200N too.

So any new insights on how to config this in OpenHab?

9037568 commented 6 years ago

We need a debug log using John's build to get the details around this line:

23:08:50.053 [ERROR] [be.devlaminck.openwebnet.OpenWebNet ] - notifyEvent, Exception : null