Closed tammeryousef1006 closed 4 months ago
@bassrock have you already seen that before? Do you know if that’s default behavior in HA? I could easily invert that by default, but I’m a bit afraid of breaking things for others 😅
i never seen that before , is it how to connect off to closed and on to open ?
The binary sensor just reports "on" or "off". The use case (in your case "door") gives it a meaning. Our current implementation says „if it is not off, the contact sensor is true“.
But maybe this is wrong for contact sensors? Could you provide the exact state value of your sensor (go to developer tools in HA, then to "states" and search the sensor by entity id) when the door is open and closed? Maybe also the entity id and attributes (also from the dev tools).
when its off it means closed , on is opened , its door contact from xiaomi based on bluetooth
now here is when its opened
Okay. As of now we have:
Door is open:
state: on
contact: true
Closed
Door is closed:
state: off
contact: false
Open
Semantically speaking I’d say it would be correct to have contact: true
when the door is closed.
So inverting the condition would be correct.
But I’d like to verify that somehow - if that is the specified on/off behavior in HA as well. I’ll spent some time searching the HA docs tomorrow, and then fix it 👍
At both smartthings and google home appears open while its closed
just me only reported this ? i feel something wrong , can anyone else test his door contacts and give feedback
Someone reported the same in #144
My issue is slightly different, I have door open in home assistant (on
state), but contact true
in matterbridge, which would be closed, and is displayed by Google Home as such
I didn't fully read it, this is the same issue
I just found this: https://www.home-assistant.io/integrations/binary_sensor/#device-class
So Austin with door, I’ll add all these one by one.
:tada: This issue has been resolved in version 1.5.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What happened?
i shared a door contact from xiaomi integration to matterbridge that paired to smartthings , the status works in opposite way , if the door were actually opened then at smartthings its appeared closed , if I close the door then at the app it shows that the door were opened , also battery still not exposed .
Your configuration
offical home assistant addon
Relevant log output
No response
Version
1.5.2-73