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

DPS firing random open close events #84

Open
dodavies opened this issue Nov 12, 2024 · 12 comments · May be fixed by #91
Open

DPS firing random open close events #84

dodavies opened this issue Nov 12, 2024 · 12 comments · May be fixed by #91

Comments

@dodavies
Copy link

dodavies commented Nov 12, 2024

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:

  • Home Assistant version 24.11.1
  • Unifi Access version 2.5.2
  • Unifi Access Integration version 1.2.5

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

@dodavies
Copy link
Author

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

@dodavies
Copy link
Author

Closing as possible faulty sensor

@dodavies dodavies reopened this Nov 13, 2024
@dodavies
Copy link
Author

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
Copy link
Owner

imhotep commented Nov 13, 2024

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

@dodavies
Copy link
Author

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
Copy link
Author

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

@imhotep
Copy link
Owner

imhotep commented Nov 13, 2024

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

@dodavies
Copy link
Author

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
Copy link
Author

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

@bluduk01
Copy link

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.

@dodavies
Copy link
Author

dodavies commented Dec 9, 2024

Just an update on this, I have changed my UA-HUB to a UA-HUB-GATE and im using the branch referenced above and I no longer suffer this issue, I would close but @bluduk01 still has the issue

@slyglif
Copy link
Contributor

slyglif commented Dec 31, 2024

I also tried out the branch listed above, and as @dodavies noted, it does resolve the issue with a UGT + UA-Intercom.

I would suggest it would be better to discard all messages from the UA-Intercom, UA-G2, and UA-G2-Pro though, as they don't have any ability to open a door on their own, and always require a hub of some kind. Doing so would also resolve #79, and should have no ill-effects on the integration.

@slyglif slyglif linked a pull request Dec 31, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants