You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having the same issue too. Have tried the following but not working.
value_template: "{{ state_attr('image_processing.platerecognizer_front_driveway_cam', 'vehicles')['plate'] }}"
value_template: "{{ state_attr('image_processing.platerecognizer_front_driveway_cam', 'vehicles').plate }}"
value_template: '{{ states.image_processing.platerecognizer_front_driveway_cam.attributes.vehicles_plate }}'
This is because the vehicles is an array. I solved it this way: {%- for i in range(0, (state_attr('image_processing.platerecognizer_camera', 'vehicles') |count) )%} {{- state_attr('image_processing.platerecognizer_camera', 'vehicles')[i].plate | upper}} {% endfor %}
I want to make an sensor where I can se the last plate found
NOT known.
here is what I have been trying.
in developer tools:
{{ state_attr('image_processing.platerecognizer_garage_2' , 'vehicles') }}
output
[{'plate': 'nkeXXXX', 'confidence': 0.683, 'region_code': 'pl', 'vehicle_type': 'Big Truck', 'box_y_centre': 116.0, 'box_x_centre': 1563.0}]
so I want to show attribute 'plate'
{{ state_attr('image_processing.platerecognizer_garage_2' , 'vehicles').plate }}
output
none
expected output
nkeXXXX
is there something I am missing ?
The text was updated successfully, but these errors were encountered: