Homematic IP window/door contact

Hi all,

I implemented a (optical) window contact but I dont know how to setup as common sensor. There is no status like on/off open/closed or something like that. Just get the rssi value which changes depending on position of the window contact.

Can someone give me a hint how to make use of this changing rssi value?

Thx
Sven

You can store the data you receive in an analog sensor, and then use a template binary sensor to determine if it is open or closed. See the sensor threshold example

1 Like
  • platform: template
    sensors:
    door_open:
    friendly_name: “Door open”
    value_template: >-
    {{ states.sensor.hip_frontdoor_status.attributes.rssi | float < -36 }}

Working fine. THX Sven

1 Like