hass-aarlo icon indicating copy to clipboard operation
hass-aarlo copied to clipboard

Feature Request: Make smart detection usable as attribute

Open TheDK opened this issue 3 years ago • 4 comments

I have noticed that when I view the thumbnails for a camera with the aarlo lovelace card, the tooltip on mouse-over actually shows what Arlo has recognized for the image: grafik

Would it possible to show just the result in the () as an attribute in the binary sensor for motion or in the cam itself. It would then be possible for example when a person is recognized and no one is home to trigger something different as when an animal is recognized. For example, when an animal is recognized on my lawn I could start the sprinklers for a couple of minutes to keep cats from taking a dump there. :)

Thanks as usually!

TheDK avatar Nov 18 '20 09:11 TheDK

This one is pretty simple, the value is already exposed in the attributes of the last sensor. I'll take a look.

twrecked avatar Nov 20 '20 19:11 twrecked

Ah, found it, was looking in the wrong place! It's attribute 'object_type' at sensor.aarlo_last_cam and it is a string with the object in english. It's easy to read that with a template sensor, so just for me you don't have to do anything (and can close this). Or do you want to put some functionality around that? If you want I can update the readme.md as it say that smart features are not supported?

TheDK avatar Nov 21 '20 06:11 TheDK

Glad you can get it working for now. I've put it on my TODO list, the change isn't huge and hopefully I can find some time this week.

And sure, update the README.

twrecked avatar Nov 21 '20 13:11 twrecked

Just to kick this old one up: Does the new MQTT backend make it possible to hand-over the smart detection results when the motion sensor is being triggered? In the past it was only in the attributes of the library item.

TheDK avatar Dec 30 '21 08:12 TheDK