robmarkcole / HASS-plate-recognizer

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

Issue plate start with number #66

Closed chimcanhcut1112 closed 2 years ago

chimcanhcut1112 commented 2 years ago

My country plate start with number like

29a12345

if I put this in template

plate_recognizer: friendly_name: "29a12345" value_template: "{{ state_attr('image_processing.platerecognizer_frontgate', 'watched_plates').29a12345}}"

will error

Invalid config for [sensor.template]: invalid template (TemplateSyntaxError: expected name or number) for dictionary value @ data['sensors']['plate_recognizer']['value_template']. Got "{{ state_attr('image_processing.platerecognizer_frontgate', 'watched_plates').'29a12345' }}". (See ?, line ?).

robmarkcole commented 2 years ago

duplicates https://github.com/robmarkcole/HASS-plate-recognizer/issues/58