g1velo / SNAVXbee2

0 stars 0 forks source link

Not able to update end device received command #15

Open Bhavana-S opened 4 years ago

Bhavana-S commented 4 years ago

Hi, I am currently working on re-integrating the esh things with openhab runtime. I am using the openhab-runtime 2.5.0, where i will have to use snavxbee2 binding to communicate with my zigbee co-ordinator and zigbee end-device, which was working fine with esh runtime.

By using this snavxbee2 binding I am able to discover the end-device, send command to the end-device.

But the problem is when the switch is turned ON/OFF from the end-device, I am able to receive the proper command to the binding in the ---> dataReceived() of SNAVXbee2BridgeHandler class I can even see that the updateState() is being called but not able to see the reflection in the paperui or console log.

Here is the log....

15:24:51.136 [DEBUG] [ding.snavxbee2.devices.Cafe1000parser] - xbeemsging length : 5 15:24:51.137 [DEBUG] [ding.snavxbee2.devices.Cafe1000parser] - string : S1 15:24:51.138 [DEBUG] [ding.snavxbee2.devices.Cafe1000parser] - stringstae : OFF 15:24:51.139 [DEBUG] [ding.snavxbee2.devices.Cafe1000parser] - channel updated s1 : S1 15:24:51.139 [DEBUG] [vxbee2.handler.SNAVXbee2BridgeHandler] - Data received from End Device 15:24:51.140 [DEBUG] [vxbee2.handler.SNAVXbee2BridgeHandler] - channel to update : snavxbee2:cafe1001:gateway:0013A20041AE0559:S1 to value : OFF 15:24:51.143 [DEBUG] [vxbee2.handler.SNAVXbee2BridgeHandler] - successfully updated

Successfully updated is the debug i have kept after the execution of the updateState()

What might have gone wrong. Please help me out on this.

Thanks in advance

g1velo commented 4 years ago

Hi , Bhavana-S,

Can you please check with Karaf the result of :

openhab> links list

this should let you know which item is linked to snavxbee2:cafe1001:gateway:0013A20041AE0559:S1 channel.

then :

openhab> items list ItemNameFromPreviousCommand

Hope this helps Right now I am struggling with upgrading to 2.5 IDE binding. .....

Bhavana-S commented 4 years ago

Thanks for the reply

Sir, as i said I am able to debug through the binding Snavxbee2 by including logger.debug through the code.

So what I can find out is the data from end device is received to the openhab server, with the proper itemname, channel id. and item state. But the proper data received from the end-device is not updating the item state at the point updateState() in the dataReceived() of SNAVXbee2BridgeHandler class.

So how can I update the state of the item through the binding. I am not able to find out what is going wrong with update state method.

Thanks again

Bhavana-S commented 4 years ago

Hi, Sir

Right now I am struggling with upgrading to 2.5 IDE binding.

Is there any updation on this. Or when can we expect this binding new release according to the new openhab-runtime build system

g1velo commented 4 years ago

So far I have not been able to move to 2.5. But I suspect that you problem is different. I see that you are using a device : ' Cafe1001' which was not designed by myself. I assume that you are working with amarpulli1994 . As I don't have access to your code it is a big difficult to help you..