Closed 1192410 closed 2 years ago
Hello again Andreas :)
I didn't know that these sensors had more than 2 states.
In my library, I'm taking the state from the v4/devices API, do you know if the "tilt" state is also shown in the response from /v4/devices call? The example you sent shows "contact_state": "closed". Can you send an example when sensor is in tilt state?
Hi Pedro, thanks again for your looking into this. Below are the readings and there is a difference between tilt and open. I think the tilt status only works if the set up has been done as window sensor. Attached is a link to the manual: https://medium.rademacher.de/static/53/cb/ce/16593e552cbf6be45a9db0499d7f5f477f/Bedienungsanleitung%20DuoFern%20Fenster%20T%C3%BCrkontakt%20EN.pdf
Tilt status:
{"response":"get_meter","meter":{"description":"Fenster-/Türkontakt Esszimmer","deviceGroup":3,"did":93,"automations":[120],"readings":{"contact_state":"tilted"},"batteryStatus":75,"batteryLow":false,"timestamp":1645866488,"iconSetInverted":0,"iconSet":{"k":"iconset27"},"name":"Fenster-/Türkontakt Esszimmer","statusValid":true,"deviceNumber":"32003164","uid":"ac29d2_1","visible":true}}
open status:
{"response":"get_meter","meter":{"description":"Fenster-/Türkontakt Esszimmer","deviceGroup":3,"did":93,"automations":[120],"readings":{"contact_state":"open"},"batteryStatus":75,"batteryLow":false,"timestamp":1645866597,"iconSetInverted":0,"iconSet":{"k":"iconset27"},"name":"Fenster-/Türkontakt Esszimmer","statusValid":true,"deviceNumber":"32003164","uid":"ac29d2_1","visible":true}}
Good to know. That means that it must be a normal sensor (text), instead of a binary sensor. I'll try to integrate that into the code in the next days. I'll keep you posted.
Thanks and sorry for having another question (I'm leaving this in here for the moment):
I also have this multi-switch https://www.rademacher.de/shop/licht-heizung/fernbedienung/duofern-mehrfachwandtaster-bat-9494-1. So far with all the integrations I have up and running I never have seen this switch showing up except in homepilot itself. I'm just curious if there would be a way to integrate this device as well ?
PS: After some googleing I found this here https://community.home-assistant.io/t/rademacher-homepilot-in-home-assistant/204935/142 for the switch and I got it working.
Hi Andreas,
Finally I had the time to implement the 3 state sensor for the contact sensor. I had to change it to a sensor entity instead of binary_sensor. The downside is that the state won't be translated (always in english).
It will be in release 1.7.0. Please note that by default, the sensor will still be Binary (for compatibility and for people which don't have the tilt option enabled). In order to set the sensors as ternary (open/tilted/closed) you'll need to go to the integration Configuration and select the sensors as having tilted position.
As for the multi-switch I'll move it to a separate issue so I can close this one. But for sure I'll need more info. I'll also read the link you sent.
Thank you. Awesome work, the solution with the Configuration option is great.
Hey Pedro,
another question. This time about the door/window sensor. There is a tilt status in homepilot. Currently the sensor is setup as binary sensor. To get the tilt status I have a setup in nodered (screenshots below). Maybe that could be integrated here as well.
Attached are some details:
{"response":"get_meter","meter":{"description":"Fenster-/Türkontakt Esszimmer","deviceGroup":3,"did":93,"automations":[120],"readings":{"contact_state":"closed"},"batteryStatus":75,"batteryLow":false,"timestamp":1645803109,"iconSetInverted":0,"iconSet":{"k":"iconset27"},"name":"Fenster-/Türkontakt Esszimmer","statusValid":true,"deviceNumber":"32003164","uid":"ac29d2_1","visible":true}}
Thanks and have a good weekend.