I can not get my HM-Sec-TIS to correctly show the state. I have quite a few HM-Sec-SC/SCo/SC-2 devices and I have configured the HM-Sec-TIS the same way.
Undefined means the Item has never received a state from the binding. I don’t know this technology so can’t help with specifics. But the problem lies with the binding, or the Item configurations for that binding.
I have created the item in the textfile by hand and I used Paper UI for it. I have deleted the corresponding thing and did it all over again. Nothing changed.
The device shows state changes in the homegear logfile, but those won’t show up in OH2. Is there a way to enable debug logging for the homematic binding?
Here is the trace log of opening and closing the garage door:
2016-12-15 20:54:23.492 [DEBUG] [ternal.communicator.HomematicGateway] - Received new (Integer) value '-51' for 'LEQ0786831:0#RSSI_DEVICE' from gateway with id 'E92CD3A5-D6A5-C666-DB0B-895E3D31D05D'
2016-12-15 20:54:23.578 [DEBUG] [ternal.communicator.HomematicGateway] - Received new (Boolean) value 'false' for 'LEQ0786831:1#LOWBAT' from gateway with id 'E92CD3A5-D6A5-C666-DB0B-895E3D31D05D'
2016-12-15 20:54:23.584 [DEBUG] [ternal.communicator.HomematicGateway] - Received new (Boolean) value 'true' for 'LEQ0786831:1#STATE' from gateway with id 'E92CD3A5-D6A5-C666-DB0B-895E3D31D05D'
2016-12-15 20:54:23.587 [TRACE] [ng.homematic.converter.TypeConverter] - Converting BOOL value 'true' with OnOffTypeConverter for 'LEQ0786831:1#STATE'
2016-12-15 20:54:25.786 [TRACE] [al.communicator.client.SocketHandler] - Returning socket for port 2001
2016-12-15 20:54:25.834 [DEBUG] [ternal.communicator.HomematicGateway] - Received new (Boolean) value 'false' for 'LEQ0786831:1#LOWBAT' from gateway with id 'E92CD3A5-D6A5-C666-DB0B-895E3D31D05D'
2016-12-15 20:54:25.837 [DEBUG] [ternal.communicator.HomematicGateway] - Received new (Boolean) value 'false' for 'LEQ0786831:1#STATE' from gateway with id 'E92CD3A5-D6A5-C666-DB0B-895E3D31D05D'
2016-12-15 20:54:25.839 [TRACE] [ng.homematic.converter.TypeConverter] - Converting BOOL value 'false' with OnOffTypeConverter for 'LEQ0786831:1#STATE'
The binding derives the types from the Homematic datapoint definitions. As far as I know “boolean” are alway respresented as Switches. It is quite interesting that the window contact state is defined as ContactItem because the datapoint is a string returning open/close. It seems that the Homematic datapoint definitions are not very consistent.
There is a discussion on Github about the possibility to influence the derivation of types.