g1velo / SNAVXbee2

0 stars 0 forks source link

Item states doesn't stored into MapDB. #14

Closed amarpulli1994 closed 5 years ago

amarpulli1994 commented 5 years ago

Hi @g1velo ,

I have integrated mapdb into my workspace. When I test with hardware (xbee devices) got a issue in xbee binding.

2018-09-04 15:44:54.099 [INFO ] [xbee.api.connection.DataReader:743  ] - [COM14 - 9600/8/N/1/N] Data received from 0013A20041511B0B >> 53 31 4F 46 46.
2018-09-04 15:44:54.101 [DEBUG] [o.o.b.s.devices.Cafe1000parser:31   ] - xbeemsging length : 5 
2018-09-04 15:44:54.102 [DEBUG] [o.o.b.s.devices.Cafe1000parser:65   ] - string : S1 
2018-09-04 15:44:54.102 [DEBUG] [o.o.b.s.devices.Cafe1000parser:77   ] - stringstae : OFF 
2018-09-04 15:44:54.103 [DEBUG] [o.o.b.s.devices.Cafe1000parser:87   ] - channel updated s1 : S1 
2018-09-04 15:44:54.103 [INFO ] [o.o.b.s.devices.Cafe1000parser:144  ] - Item Updated with OFF state
2018-09-04 15:44:54.103 [DEBUG] [o.b.s.h.SNAVXbee2BridgeHandler:396  ] - Data received from End Device
2018-09-04 15:44:54.103 [DEBUG] [o.b.s.h.SNAVXbee2BridgeHandler:402  ] - channel to update : snavxbee2:cafe1001:gateway:0013A20041511B0B:S1 to value : OFF 
2018-09-04 15:44:54.103 [DEBUG] [o.b.s.h.SNAVXbee2BridgeHandler:407  ] - Item Stae Updated
2018-09-04 15:44:54.103 [INFO ] [smarthome.event.ItemStateEvent:53   ] - light updated to OFF
======================== ItemState Event Received===============
2018-09-04 15:44:54.103 [DEBUG] [e.s.c.t.i.CommunicationManager:321  ] - Received  event 'OFF' for non-existing thing 'snavxbee2:cafe1001:gateway:0013A2004127FBA1', not forwarding it to the handler
2018-09-04 15:44:54.103 [DEBUG] [e.s.c.t.i.CommunicationManager:321  ] - Received  event 'OFF' for non-existing thing 'snavxbee2:cafe1001:gateway:0013A20041554E3E', not forwarding it to the handler
2018-09-04 15:44:54.103 [DEBUG] [.p.m.i.MapDbPersistenceService:154  ] - store called for light
2018-09-04 15:44:54.103 [INFO ] [s.event.ItemStateChangedEvent :53   ] - light changed from ON to OFF
2018-09-04 15:44:54.103 [INFO ] [.p.m.i.MapDbPersistenceService:165  ] - Stored 'light' with state 'OFF' in MapDB database
2018-09-04 15:44:54.103 [INFO ] [.p.m.i.MapDbPersistenceService:167  ] - **** Items successfully stored from Items ****

I have observed these two lines in a log files.

2018-09-04 15:44:54.103 [DEBUG] [e.s.c.t.i.CommunicationManager:321  ] - Received  event 'OFF' for non-existing thing 'snavxbee2:cafe1001:gateway:0013A2004127FBA1', not forwarding it to the handler
2018-09-04 15:44:54.103 [DEBUG] [e.s.c.t.i.CommunicationManager:321  ] - Received  event 'OFF' for non-exist

How to overcome this issue. Awaiting your response.

Best Regards, Amar.