[APP][Pro] Gemini AI - Control your Smart Home with Google's Gemini

Great :smiley:. Thanks, have a nice evening too!

Hi Dimitri, I’ve just released version 2.10.0 of the app with two new trigger events (one for plain text prompt and one for text+image prompt). Let me know if everything works.

Hi Simone,

I tested it right away. It’s great that these trigger cards have been added. Here’s what I’m noticing:

If one camera is triggered and receives the response with the analyzed image, it works well. I get the correct response along with the correct analyzed image.

If two cameras are triggered at the same time (which happens regularly), Gemini does return the correct responses — so the text for camera 1 and camera 2 is accurate. However, the images are the same for both cameras. In that case, both camera 1 and camera 2 receive the analyzed image from camera 1.

Other than that, it works perfectly!

You only have this problem with the new trigger I just added, right? If you use the image directly from the action card, does everything work correctly?

Yes that’s correct.

This is a compromise I had to make to prevent every analyzed image from being saved to Homey, which would cause the app to crash at some point. Now the app only saves one image at a time (which means that in the case of a simultaneous call, the second image overwrites the first). I just uploaded v2.10.1, where I added in Settings->Configuration the option to specify the number of simultaneous images the app can handle (the default is 4, so Homey always has four preloaded images). Be careful, because the higher the number, the more Homey memory the app uses.
Let me know if it now works with simultaneous calls (I don’t have a camera and haven’t been able to do extensive testing).

Version v2.10.1 works perfectly. I tested it with 4+ cameras triggering at the same time. I now receive the correct image with the correct text and camera. Thank you!

Does this mean that all images are stored in memory, or are they deleted after a certain period of time? To prevent the app from crashing after a few weeks/months due to too many images in memory like you said.

Thank you very much for the improvements, Simone — the donation is on the way!

Hi Dimitri, thanks for the donation!

Now, by default, the app saves 4 image slots for Gemini in Homey. You can set a higher or lower number in the app settings. If you have 16 cameras in your home and set this value to 16, you’ll never have problems even if a presence trigger were to trigger for all 16 at the same time. However, this does mean more memory is used (how much depends on the photo resolution). If everything is working perfectly now, I suggest leaving the default value (4 slots). If you encounter any issues, you can always increase it.
If you want to know which and how many images Homey is saving to memory, you can check https://tools.developer.homey.app/ (images section).

Have you also tried the action card for managing your smart home? If you use it together with the Telegram Homey app or WhatsApp Homey app, you can actually chat with your home and ask for information or send commands.

Hi Simone,

Clear, I can indeed see the images in the image section.
Good tip — I’ll test that next once all the cameras are set up :smiley: .