robmarkcole / HASS-plate-recognizer

Read number plates with https://platerecognizer.com/
128 stars 25 forks source link

Watched Plates Sensor Issue #46

Closed htiennhan closed 2 years ago

htiennhan commented 2 years ago

I can get plate recognizer to work with my home assistant however I am having issue when adding watched plates sensor

Below is my sensor code

sensor:

Home Assistant having this warning in the log image

When I scan plate-recognizer, it can detect my license plate but the sensor does not change state. My home assistant version is core-2021.9.0b6.

robmarkcole commented 2 years ago

this returns None: state_attr('image_processing.platerecognizer_1', 'watched_plates')

htiennhan commented 2 years ago

Hi Rob,

Sorry, maybe I misunderstanding the usage of the sensor. All I am trying to do is to trigger an action when my license plate is detected.
I thought the sensor will return the state to "true" when 'watched_plates' detected 'abc12d', and return state to "false" when "watched_plates" is not 'abc12'.

htiennhan commented 2 years ago

Just found out that I missed spelled the image_processing entity. the watched plates sensor works fine