In this post, I’m excited to share a powerful new way to analyze your camera images locally using AI models within Home Assistant. By leveraging Ollama, you can perform sophisticated image analysis directly on your device, ensuring your data remains private and secure.
I’ve created a custom component for Home Assistant that facilitates this integration, allowing your smart home system to send images from your cameras to Ollama for analysis. This setup not only enhances your smart home’s capabilities but also prioritizes your data privacy by keeping everything local.
In this comprehensive guide, you’ll find detailed instructions on setting up this integration, along with a link to the GitHub repository for the custom component. Transform your smart home with advanced, secure, and efficient image analysis today!
Read on to get started and take your Home Assistant setup to the next level!
Here is the link to the custom component “Ollama image analysis” for Home Assistant:
https://github.com/the-smart-home-maker/hass_ollama_image_analysis
In the following, you will find the detailed video.
2 Responses
Hey Smart Home Maker,
I’ve been following along and testing out the Ollama image analysis integration you’ve built – works great, very impressive!!.
One item I’m struggling with is how to use the ‘response_variable’ for more than just the body of a notification message.
I’d like to be able to update an input helper or some other type of entity with the response variable text so i can use it on various frontend dashboards… i’ve tried many different approaches in an automation but no luck.. i can only seem to use the response variable as text in the notification message body.
is there a method you are aware of to take the response and use that to update an entity state (eg input_text.ollama_image_driveway) or super cool would be to update the integration options to include an entity to natively update when the action executes.
many thanks, Martin
Hey Martin,
thank you for your comment! Really happy to hear that you like the custom integration 🙂
I would have thought just using the service for setting an input_text would work. But if that does not work, I also have no idea right at hand. But I will think about it and try some stuff. If I find a solution, I will get back to you.
Best,
The Smart Home Maker