imhotep / hass-unifi-access

Unifi Access Integration for Home Assistant
Apache License 2.0
74 stars 16 forks source link

DPS firing random open close events #84

Open dodavies opened 2 weeks ago

dodavies commented 2 weeks ago

Describe the bug My UA-HUB keeps saying the dps sensor is going from open to closed when it isn't the time stamps in the ha log seem to be in a loop or something timed as they are typically on the same second or minute or hour

Which Hub are you using

  1. Unifi Access Hub

Screenshots

Screenshot 2024-11-12 at 10 56 38

Versions:

Log added at the bottom as this is intercom related and experimental

dodavies commented 2 weeks ago

I have shorted the pins on dps to ensure the sensor isn't faulty

dodavies commented 2 weeks ago

Closing as possible faulty sensor

dodavies commented 2 weeks ago

I have tested this further and it is not a faulty sensor and I understand that I have an intercom which is experimental I can cause the dps to trigger if I open my unifi access app and open the video feed repeatable on demand home-assistant_unifi_access_2024-11-13T11-45-02.375Z.txt

imhotep commented 2 weeks ago

@dodavies Do you have a DPS sensor or is it just reporting this without anything connected to the DPS ports?

dodavies commented 2 weeks ago

I had one connected NC but removed it and put in a link wire to rule out the sensor. I will remove the dps sensor and link and try again now and update you

dodavies commented 2 weeks ago

I removed all wires from the dps connection opened access app clicked for video and the HA logbook shows open closed

imhotep commented 2 weeks ago

Can you try this branch and let me know if works for you?

dodavies commented 2 weeks ago

same behaviour as soon as you open the access app and press play on the video feed you get the gate opened event in HA logbook

dodavies commented 2 weeks ago

I have connected the dps sensor and same thing press play on video and you get a open event

bluduk01 commented 1 week ago

I also have this same behavior. I also have experimental devices (UA-Gate and intercom). Also using a NC dps.

If I open and close the gate with a remote or via home assistant or unifi access it will read correctly for a few minutes and then will state open. Unifi access does state the dps is closed however.