Hi all, I am using Openhab 2 for eight months now. My CCU3 w/ a couple of gateways and about 50 devices is connected to Openhab 2.5.1 on Debian Linux (x64). Currently I want to use a Homematic HM-SCI-3-FM contact interface to read the status of an oil furnace. I paired the device with the CCU3 and I can see the correct status of the three contacts on the CCU Web UI. However, there are no related events in openhab’s events.log when the contacts are switched.
Installation of a “dummy program” on the CCU3 did not help.
Nothing related to the HM-SCI-3-FM. The only entry is this
2020-02-18 20:50:28.714 [INFO ] [g.discovery.internal.PersistentInbox] - Added new thing ‘homematic:HM-SCI-3-FM:1896057d:QEQ0013219’ to inbox.
Later on I find in the events.log:
2020-02-18 20:57:35.057 [.ItemChannelLinkAddedEvent] - Link ‘Heizung_Status_BV-homematic:HM-SCI-3-FM:1896057d:QEQ0013219:0#LOWBAT’ has been added.
2020-02-18 20:57:35.058 [.ItemChannelLinkAddedEvent] - Link ‘Heizung_Status_SS-homematic:HM-SCI-3-FM:1896057d:QEQ0013219:0#SIGNAL_STRENGTH’ has been added.
and these:
2020-02-18 21:11:08.189 [.ItemChannelLinkAddedEvent] - Link ‘Heizung_Status_ON-homematic:HM-SCI-3-FM:1896057d:QEQ0013219:1#STATE’ has been added.
2020-02-18 21:11:08.190 [.ItemChannelLinkAddedEvent] - Link ‘Heizung_Status_OK-homematic:HM-SCI-3-FM:1896057d:QEQ0013219:2#STATE’ has been added.
2020-02-18 21:11:08.190 [.ItemChannelLinkAddedEvent] - Link ‘Heizung_Status_ERR-homematic:HM-SCI-3-FM:1896057d:QEQ0013219:3#STATE’ has been added.
That was it …
When restarting openhab I find the following lines in events.log:
2020-02-19 15:25:18.438 [vent.ItemStateChangedEvent] - Heizung_Status_BV changed from NULL to OFF
2020-02-19 15:25:18.585 [vent.ItemStateChangedEvent] - Heizung_Status_ON changed from NULL to OFF
2020-02-19 15:25:18.603 [vent.ItemStateChangedEvent] - Heizung_Status_OK changed from NULL to OFF
2020-02-19 15:25:19.339 [vent.ItemStateChangedEvent] - Heizung_Status_ERR changed from NULL to OFF
2020-02-19 15:25:19.648 [vent.ItemStateChangedEvent] - Heizung_Status_SS changed from NULL to 4.0
No more messages can be found afterwards, even when the status of the switches has changed …
Please enable the TRACE for the Homematic binding, restart openHAB and then change the switch states. Then we should be able to see whether the binding receives any messages from the CCU
Thinking about a second instance did not help, of course.
But anyway, I managed to set Homematic to DEBUG and located then the following
2020-02-20 16:22:36.687 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'false' for 'QEQ0013219:1#STATE' from gateway with id '1896057d'
2020-02-20 16:22:36.687 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'false' for 'QEQ0013219:1#LOWBAT' from gateway with id '1896057d'
...
2020-02-20 16:22:37.781 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'true' for 'QEQ0013219:1#STATE' from gateway with id '1896057d'
2020-02-20 16:22:38.375 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'false' for 'QEQ0013219:1#LOWBAT' from gateway with id '1896057d'
...
2020-02-20 16:22:40.779 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'false' for 'QEQ0013219:1#LOWBAT' from gateway with id '1896057d'
2020-02-20 16:22:41.279 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'false' for 'QEQ0013219:1#STATE' from gateway with id '1896057d'
...
2020-02-20 16:22:42.375 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'true' for 'QEQ0013219:1#STATE' from gateway with id '1896057d'
2020-02-20 16:22:42.378 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Boolean) value 'false' for 'QEQ0013219:1#LOWBAT' from gateway with id '1896057d'
...
So this means that openhab receives the messages, right ? The events file, however, does not have any events from this device.
I double checked my items file. It says:
Switch Heizung_Status_ON
"Hzg Brenner ein [%s]"
<switch>
(gHeizung_Status)
{channel="homematic:HM-SCI-3-FM:1896057d:QEQ0013219:1#STATE"}
I have probably found it. According to the logs the binding uses a OpenClosedTypeConverter. This means the channel is defined as Contact and not as Switch. Please modify your item definition and change “Switch” to “Contact”.
You can normally see the correct type in Paper UI.