petrleocompel / hikaxpro_hacs

HACS repository of Hikvision Ax Pro integration for home assistant
MIT License
46 stars 5 forks source link

AXHub Magnet presence #95

Closed HOMEGLN closed 1 month ago

HOMEGLN commented 9 months ago

Hello! I have a Hikvision Axhub and after the upgrade from V2.1.0-beta 15 to beta 16 or v2.1.1 I miss the sensors that indicate whether the magnetic contacts are open or closed. the entity that shows this is no longer available according to HA.

I have 3 magnetic contacts and the status is no longer visible on all of them. When I downgrade to beta 15 they are available again.

Magnet error

petrleocompel commented 9 months ago

Could you please enable debug output in configuration of integration, restart HA, wait for pull interval and provide logs of that? Also what model of magnetic sensors do you have?

HOMEGLN commented 9 months ago

home-assistant_hikvision_axpro_2024-02-04T21-50-29.430Z.log

HOMEGLN commented 9 months ago

Type of magnetic sensor is Hikvision DS-PD1-MC-WWS. Thanks!

petrleocompel commented 1 month ago

Went back to some issues with "magnets" since some fixing some issues. Sadly "AX" systems "AX Hub" system does not send "magnet" status. Same as dont sent battery level. Just "low battery" sensor.

"AX Pro" sends these values.

Logs from you confirms that.

HOMEGLN commented 1 month ago

Hello @petrleocompel,

In version 2.1.0-beta15 it does. See screenshot. It stopped working in version 2.1.0-beta16 and later.

image

petrleocompel commented 1 month ago

I understand. But Magnet presence was never really working for these systems. Because the system does not send the value. Also you are behind a releases. take a look - https://github.com/petrleocompel/hikaxpro_hacs/releases Current version is 2.2.0

petrleocompel commented 1 month ago

@HOMEGLN It was basically issue where "magnet entity" is added because "detector" is type "magnet" and the check for "is on?" was checking status instead the real value of magnet.

So... it was not working.

If you can simulate that value changes I would love to see logs before and after triggering the sensor. (even if you install new version the logs will still see this changes in any case. Also keep in mind your pull interval of data)

HOMEGLN commented 1 month ago

Hello @petrleocompel,

First of all, thank you for your comment and your great work you have done for creating this plugin.

I was on an old version because that was the last working version for me. I just installed 2.2.0 but it also lacks the magnet sensor status.

With the beta15 version, the status follows exactly the status of the door, when I open the door the status of the magnet changes instant to presence off.. Same for closing the door, magnet changes to presence "on".

Do you want logs of beta15 where it is working of from 2.2.0 where it is not?

In the screenshot an example of opening and closing the door to walk out.

image

petrleocompel commented 1 month ago

Does not matter. Just dont forget in configuration of integration enable debug output. Then restart HA and then enable debugging of integration.

petrleocompel commented 1 month ago

I was going through old logs @HOMEGLN

image

All the time magnet info is not being sent.

If you will have logs please put them here. And possibly mark some timestamps when did magnet open and closed.

Also what is your update interval in settings ?