Issue of the topic: Homematic IP window contact state (open/close) doesn’t update to openHAB
The updated Data reaches the CCU3 but isn’t forwarded to openHAB.
On the other Hand it works properly with the radiator control.
I don’t think this is related, but I found that this error is coming up every 30 seconds: 2020-12-30 15:35:52.097 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler HomematicBridgeHandler of thing homematic:bridge:4b781f66c6 tried updating channel DUTY_CYCLE_RATIO although the handler was already disposed.
I don’t think this is related, but I found that this error is coming up every 30 seconds:
This message means that there is a problem with the binding (maybe a connection problem). And maybe this causes the problem.
Before continuing please make sure that all necessary ports are open in the firewall on the CCU and also on your Raspberry (here especially ports 9125, 9126).
If there ports seem to be OK. Please enable the TRACE log mode for the Homematic binding, restart openHAB, wait until the binding is completely started, open/close the window. Then please post the openhab.log file here.
I’m not sure how to open ports on the Raspberry however I think I TRACEd the homematic binding but as a new user I can’t upload the log and it is 20000 lines log so I think I must have logged too much. After rebooting the error message didn’t show up anymore.
You can send the log to my mail address: develop@mherbst.de. The number seems to be OK.
I’m not sure how to open ports on the Raspberry
I don’t use openHABian on my Raspi, where I have disabled the firewall. So I don’t know how it exactly works with openHABion (probably iptables of ufw).
By the way thanks for your very quick response!
You are welcome. I am currently working on some improvements in the Homematic binding. Therefore I am just in the topic :-).
All of the window / door contacts or sensor are causing the problem.
I don’t know where to find the “hardcopy” channel definitions, but here is the code from the PaperUI definition of one of the windows:
I t looks like I have the same problem with a Homematic window contact, while “Actual Temperature” and “Set Point Temperature” of radiator thermostat are working properly in the UI (OH 3)
@MHerbst dear Sir, how can I change channel from “String” to “Contact” using the UI ?
Using only CCU3, everything is working properly, but I would like to add some rule for example light ON when a window is open etc…
@alamak You can’t simply change the channel type. Homematic uses for the HmIP versions of this device a different data point type than for older devices. This type is currently not supported in the binding and the implementation is not so easy. But it is on my “todo” list.
As a bypass, you could create an additional item of type “contact” that is not bound to a channel and then use a script the maps the values received from the “String” contact to the contact item.
When I open and close a window (the SRH in this instance), this is what openhab receives:
2021-02-09 18:30:06.695 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Integer) value ‘2’ for ‘0007DA49A8BB16:1#STATE’ from gateway with id ‘4b781f66c6’
2021-02-09 18:30:09.386 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Integer) value ‘4’ for ‘00201A499D8A04:1#VALVE_STATE’ from gateway with id ‘4b781f66c6’
2021-02-09 18:30:09.392 [DEBUG] [ommunicator.AbstractHomematicGateway] - Received new (Integer) value ‘1’ for ‘00201A499D8A04:1#WINDOW_STATE’ from gateway with id ‘4b781f66c6’
If you want I can send you the whole log via Email, but I can’t post it here, because its too big.
Yes, please zip it and send by mail. Before you create it, please change the log setting to TRACE and repeat the steps. DEBUG mode seems not to be sufficient.
Hello,
today I checked my inbox and under ignored there were all of the Homematic a second time. I tried them and it works perfectly now. I don’t know for how log they have been there.
Thank you very much for your help, I’m sorry I didn’t see them sooner.
Best regards
I am on 3.1.0-SNAPSHOT - Build #2198 but facing still the same problem, and I dont see any (double) items under “show ignored”. So, unfortunately not working for me.