home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.94k stars 30.52k forks source link

Unifi Protect - Sensor not providing license plate data/information #124090

Closed dejab closed 2 months ago

dejab commented 2 months ago

The problem

Unifi Protect - Sensor License plate detected - Not showing data. (ie License Plate Information)

What version of Home Assistant Core has the issue?

core-2024.8.2, core-2024.8.1, and I think core-2024.8.0

What was the last working version of Home Assistant Core?

core-2024.7.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Unifi Protect

Link to integration documentation on our website

https://www.home-assistant.io/integrations/unifiprotect/

Diagnostics information

config_entry-unifiprotect-a28d8c68b420124aeb68f3705f8ff980.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No

Additional information

No response

home-assistant[bot] commented 2 months ago

unifiprotect documentation unifiprotect source

dejab commented 2 months ago

Issue resolved....

tvdeynde commented 1 month ago

Hi Dejab, how did you resolve this? I have a similar issue

dejab commented 1 month ago

I was reading the sensor state, states('sensor.driveway_license_plate_detected'), after the trigger, which was not always providing the data.

I now read the trigger.to_state.state, which has the license plate that triggered the automation as shown below.

alias: License Plate description: License Plate trigger:

tvdeynde commented 1 month ago

Thanks, that's also how I used it (the to_state) but since the 4.1 version of Protect became official, it seems to never hold data anymore. Maybe Ubiquiti changed something on their end

dejab commented 1 month ago

I’m on Protect Version 4.1.53

tvdeynde commented 1 month ago

Same. I will try an debug a bit further then