Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to configure to work with license plates starting with a number #35

Open
mlhyyl opened this issue May 8, 2021 · 4 comments
Open

Comments

@mlhyyl
Copy link

mlhyyl commented May 8, 2021

Hi,

In Turkey, our license plates start with numbers.

Unfortunately, HA will protest when I feed in the code below and click Check configuration. 82ab123 causes the problem.

value_template: "{{ state_attr('image_processing.platerecognizer', 'watched_plates').82ab123 }}"

Is there a workaround to this situation?

@robmarkcole
Copy link
Owner

Not sure, sounds like a generic HA question, can you ask on the forums?

@groues
Copy link

groues commented Jun 4, 2021

Here is my workaround for the sensor:
value_template: >
{{ state_attr("image_processing.platerecognizer_door", "watched_plates")["82ab123"] }}
This is because variables names cannot start with a number.

@lowgoz
Copy link

lowgoz commented Jun 13, 2021

Here is my workaround for the sensor:
value_template: >
{{ state_attr("image_processing.platerecognizer_door", "watched_plates")["82ab123"] }}
This is because variables names cannot start with a number.

this needs to be added to the readme - ill do it when i have a moment unless someone else has time?

@shanem2004
Copy link

shanem2004 commented Jul 14, 2021

this needs to be added to the readme - ill do it when i have a moment unless someone else has time?

I just added it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants