I have DSC IT-100 serial device, stuck in “OFFLINE” status on Openhab2 2016-04-17 snapshot.
Using both discovery method and manually configuring the bridge in demo.things it stays in offline mode. Then any other bindings, for the panel ect under that stays stuck in “Initializing” status. It was easier to see whats going on when using the Discovery method of setting it up, however I am not sure what is wrong. When I connect directly to the serial port myself (when openhab is shutdown) I can see the messages from the alarm system, also the fact that it gets discovered makes me think it is function as expected.
So the config looks like:
Thing:
Bridge dscalarm:it100:ttys1 [ serialPort="/dev/ttyS1", baud="9600", pollPeriod="1" ] { Thing panel panel Thing partition partition1 [ partitionNumber=1 ] Thing zone zone1 [ partitionNumber=1, zoneNumber=1 ] Thing zone zone2 [ partitionNumber=1, zoneNumber=2 ] Thing zone zone3 [ partitionNumber=1, zoneNumber=3 ] Thing zone zone4 [ partitionNumber=1, zoneNumber=4 ] Thing zone zone5 [ partitionNumber=1, zoneNumber=5 ] Thing zone zone6 [ partitionNumber=1, zoneNumber=6 ] Thing zone zone7 [ partitionNumber=1, zoneNumber=7 ] Thing zone zone8 [ partitionNumber=1, zoneNumber=8 ] Thing keypad keypad }
Items:
/* DSC Alarm Panel Items */ Switch PANEL_CONNECTION "Panel Connected: [%d]" (DSCAlarmPanel) {channel="dscalarm:panel:ttys1:panel:bridge_connection"} Number PANEL_COMMAND "Panel Commands" (DSCAlarmPanel) {channel="dscalarm:panel:ttys1:panel:panel_command"} String PANEL_MESSAGE "Panel Message: [%s]" (DSCAlarmPanel) {channel="dscalarm:panel:ttys1:panel:panel_message"} String PANEL_SYSTEM_ERROR "Panel System Error: [%s]" <"shield-1"> (DSCAlarmPanel) {channel="dscalarm:panel:ttys1:panel:panel_system_error"}
And then finally what I get in the logs:
016-04-18 12:06:49.385 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:it100:ttys1' has been added. 2016-04-18 12:06:49.386 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:keypad:tcpbridge:keypad' changed from INITIALIZING to UNINITIALIZED (HANDLER_MISSING_ERROR) 2016-04-18 12:06:49.387 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:panel:ttys1:panel' has been added. 2016-04-18 12:06:49.389 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:it100:ttys1' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.392 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:06:49.393 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:it100:ttys1' changed from INITIALIZING to OFFLINE 2016-04-18 12:06:49.394 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:partition:ttys1:partition1' has been added. 2016-04-18 12:06:49.395 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:panel:ttys1:panel' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.406 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:partition:ttys1:partition1' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.413 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:06:49.419 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone1' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.421 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone1' has been added. 2016-04-18 12:06:49.421 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone3' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.422 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone2' has been added. 2016-04-18 12:06:49.423 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone3' has been added. 2016-04-18 12:06:49.423 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone4' has been added. 2016-04-18 12:06:49.423 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone2' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.432 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone4' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.433 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone5' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.433 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone5' has been added. 2016-04-18 12:06:49.437 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone6' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.438 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone6' has been added. 2016-04-18 12:06:49.439 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone7' has been added. 2016-04-18 12:06:49.451 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:zone:ttys1:zone8' has been added. 2016-04-18 12:06:49.453 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone7' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.454 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:zone:ttys1:zone8' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:49.456 [INFO ] [smarthome.event.ThingAddedEvent ] - Thing 'dscalarm:keypad:ttys1:keypad' has been added. 2016-04-18 12:06:49.457 [INFO ] [me.event.ThingStatusInfoChangedEvent] - 'dscalarm:keypad:ttys1:keypad' changed from UNINITIALIZED to INITIALIZING 2016-04-18 12:06:54.448 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:06:54.457 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:06:59.458 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:06:59.470 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:07:04.471 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:07:04.484 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:07:09.486 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:07:09.495 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:07:14.497 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:07:14.510 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:07:19.549 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:07:19.559 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:07:24.560 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:07:24.570 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid! 2016-04-18 12:07:29.659 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - Not Connected to the DSC Alarm! 2016-04-18 12:07:29.666 [ERROR] [rm.handler.DSCAlarmBaseBridgeHandler] - sendCommand(): Command Not Sent - Invalid!.
2016-04-18 12:10:47.436 [INFO ] [ome.core.thing.internal.ThingManager] - Not delegating command '1' for item 'PANEL_COMMAND' to handler for channel 'dscalarm:panel:ttys1:panel:panel_command', because thing is not initialized (must be in status ONLINE or OFFLINE).
It definitely looks like somethings up with the module connecting over serial connection, and I cant find documentation on what I should be configuring for the serial device.
Any help will be appreciated.