Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Contact sensor magnet status switched around #133

Closed
praemon opened this issue Oct 13, 2024 · 4 comments
Closed

Contact sensor magnet status switched around #133

praemon opened this issue Oct 13, 2024 · 4 comments
Assignees
Labels
wontfix This will not be worked on

Comments

@praemon
Copy link

praemon commented Oct 13, 2024

Hi all. So I’ve been using this integration without issue for a while now (thanks to all the contributors!). I’ve since updated to 2.2.1 and noticed the magnet status has switched around on all my contact sensors (DS-PDMCS-EG2-WE(B)). ie. Closed doors show the magnet as “off” while open doors show as “on”. This has resulted in all linked automations failing.

Before I try uninstall and reinstall everything, is there anyway to reset the statuses so they get corrected? Or is this now the “correct” status for the magnet open/close status?

Thanks!

@petrleocompel
Copy link
Owner

So currently the magnet sensor was completely broken because it was for certain systems not respecting the value at all.

It is based on PRESENCE so it is might not good. And might should be based on type SAFETY.
But in all cases even SAFETY type says "off" = safe. And I think that is correct.

With PRESENCE - "On means home, Off means away." Which for this case does not mean much sense.

The logic even previously was even now it is magnet_open_status directly returned from Hikvision.
So open magnet = true. Closed = false.

image

@petrleocompel
Copy link
Owner

I might will change the "type" to SAFETY. But the value will be according the documentation.

  • "ON" = open
  • "OFF" = closed

@petrleocompel petrleocompel self-assigned this Oct 13, 2024
@petrleocompel petrleocompel added the wontfix This will not be worked on label Oct 13, 2024
petrleocompel added a commit that referenced this issue Oct 14, 2024
…ocumentation and remove unused entity descriptions #133
@petrleocompel
Copy link
Owner

Fixed type to match the documentation and released v2.2.2

@nautilus7
Copy link

Hi, is it normal that my magnetic contact only show a status (online) sensor now? See picture:

image

With version 2.1.6 I had an extra sensor that got disabled with the 2.2.1 and 2.2.2. See picture of latest version before deleting the configuration and reloading:

Screenshot 2024-10-14 232054

I am using the old ax panel (not the pro).
I have sent logs via email.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants