In the sitemap the value is not displayed…
If I access the item via REST the state seems to be always NULL, no matter what the sensor shows in the CCU2 GUI.
I declared my door sensor as type “Contact” in the .items file. The rest is similar to your configuration.
How did you configure the sitemap entry for the sensor?
I agree with Lars. Provided the channel you are using in your items file is correct, it will only display if you have configured the item as a contact and your sitemap looks like:
Text item=Haustuersensor_1_State label="Haustür [MAP(contacts.map):%s]" icon="frontdoor"
MAP translates the CLOSED to “ZU”. Important is that you configure as Text item and use [%s]. By the way the icon frontdoor changes to open as well when the door opens.
btw, you could configure the item directly from Paper UI, is much easier.
[quote=“larshendrikkorte, post:5, topic:37243, full:true”]
Do you see any lines in the events.log if the door sensor opens/closes? [/quote]
No, nothing… But I found this: 2017-12-14 01:40:05.058 [INFO ] [ommunicator.AbstractHomematicGateway] - No event since 310 seconds from gateway 'ccu', restarting RPC server
Maybe the communication between the CCU and OH is blocked?
Looks that way… What can I do?
Is it possible that it is an authentification issue?
Do you have other Homematic devices in your OH or is the door sensor the only one?
Have you opened the firewall on the CCU for OH? You have to allow connections from your OH server to the CCU. In the CCU WebUI go to “Einstellungen” -> “Systemsteuerung” -> “Firewall konfigurieren” and enter the appropriate values.
Sorry, I forgot to mention that you also have to change the drop down fields for at least “HomeMatic XML-RPC API” to “Vollzugriff” to make it work. That’s the API where OH communicates with the CCU. HTH.
Hmmmm there is only the Gateway address visible (It’s logic becaue I didn’t configured anything else in the things file)… Is that correct or do I have to enter callback address and the ports also (how do I do this via things file?)
Thanks… it works now…
But actually I don’t understand why I addiationally have to add the value… On my temperature or power sensors the value is displayed right away…
Do you have a download link for your icon set? Looks nice & clean.
Yeah it’s a very common icon set from Google (or I guess based on that and extended by the commnunity):