robmarkcole / HASS-amazon-rekognition

Home Assistant Object detection with Amazon Rekognition
https://aws.amazon.com/blogs/aws/amazon-rekognition-image-detection-and-recognition-powered-by-deep-learning/
MIT License
87 stars 8 forks source link

Update template sensor example to use state_attr #89

Open robmarkcole opened 3 years ago

robmarkcole commented 3 years ago

Using the recommended approach is a bit clunky but looks like:

{{ state_attr('image_processing.rekognition_local_file_1', 'summary').person }}

Is this better than the currently listed approach? If yes update readme

camui-alexandru commented 3 years ago

how can make a template sensor to show number of cars and one to show number of persons in a picture?