diff --git a/blog/2024-11-01-proactive-ai.md b/blog/2024-11-01-proactive-ai.md new file mode 100644 index 00000000..b54f3851 --- /dev/null +++ b/blog/2024-11-01-proactive-ai.md @@ -0,0 +1,82 @@ +--- +title: Proactive AI Arrives in Gladys Assistant! +description: Artificial intelligence is integrated even more deeply into Gladys to make your home smarter and more responsive. +author: Pierre-Gilles Leymarie +author_title: Founder of Gladys Assistant +author_url: https://twitter.com/pierregillesl +author_image_url: /img/pierre-gilles.jpg +image: /img/presentation/gladys-4-48.jpg +slug: proactive-ai +--- + +Hello everyone! + +Today, I’m excited to introduce Gladys Assistant 4.48, a version where artificial intelligence is even more deeply integrated into Gladys to make your home smarter and more responsive. + +Since January 2023, you could already ask ChatGPT questions through Gladys. + +![Gladys with ChatGPT](../static/img/articles/en/gladys-4-48/chatgpt-gladys.jpg) + +That was a good start, but I want to take it further! What if AI could be proactive and make decisions for you? + +## Imagine the possibilities + +Imagine a car pulls up in front of your house. A dedicated security guard would watch, recognize your car—its shape, color, license plate—and know immediately that it’s you. But hiring a 24/7 guard isn’t within reach for everyone! + +What if AI could play that role? + +In Gladys, you can now write a simple instruction, for example: + +> “If a car is in front of the house, and it’s a red Tesla Model 3 with the license plate XXX, turn on the garage; otherwise, alert me that there’s an intruder.” + +With Gladys 4.48, this scenario becomes a reality! You have a generalist AI ready to monitor and make decisions, just like a dedicated agent, but without the cost. + +## A concrete example + +This new feature is based on the OpenAI ChatGPT 4o-mini API, with its latest vision feature available to Gladys Plus subscribers. + +In a scene, you can create an “Ask AI” action and, if desired, send it an image from a camera. + +Take the car example: + +![Analyzing camera image](../static/img/articles/en/gladys-4-48/ask-ai-camera.png) + +If movement is detected outside your house, Gladys will send the garage camera image to analyze the situation. Then, based on detection: + +- If the correct car is recognized, the garage light turns on. +- If another car is detected, you receive an intruder alert on your phone. + +## Analyzing sensor values + +The camera is just one example! You can also send sensor data to the AI and ask it to act based on the results. + +For instance, you could send a CO2 sensor value and request an action if the level is abnormal: + +![Analyzing Co2 Level Gladys](../static/img/articles/en/gladys-4-48/ask-ai-sensor.png) + +No need to look up recommended CO2 levels in a room—the AI draws on its extensive knowledge (essentially all of the internet!) to assess the situation and act intelligently. + +It’s even possible to inject values retrieved from other APIs to: + +- Get a weather report first thing in the morning +- Track financial markets with a stock summary +- Check the news with an RSS feed +- Verify home security each day during your vacation (normal temperature, etc.) + +The possibilities are endless! I can’t wait to see what you’ll create with this update. Share your trials on the forum to inspire others! + +## Other updates + +- In scenes, filters by tag or title are now saved in the URL, so you can easily return to a filter after navigating. +- Added support for pilot wire heaters in scenes. +- Camera images are now retrieved via TCP (instead of UDP), avoiding display errors (like the green band bug). +- Fixed binary charts: the first value now displays correctly. +- DuckDB: connections are now properly closed when Gladys shuts down. + +Thanks to everyone who contributed to this update! 🙌 + +## How to update? + +Make sure to use Watchtower for automatic updates. Check the [documentation](/docs/installation/docker#auto-upgrade-gladys-with-watchtower). + +With Watchtower, Gladys will update automatically. diff --git a/i18n/fr/docusaurus-plugin-content-blog/2024-11-01-proactive-ai.md b/i18n/fr/docusaurus-plugin-content-blog/2024-11-01-proactive-ai.md new file mode 100644 index 00000000..fb63f9a9 --- /dev/null +++ b/i18n/fr/docusaurus-plugin-content-blog/2024-11-01-proactive-ai.md @@ -0,0 +1,94 @@ +--- +title: L'IA Proactive débarque dans Gladys Assistant ! +description: L’intelligence artificielle s’intègre encore plus profondément dans Gladys pour rendre votre maison encore plus intelligente et réactive. +author: Pierre-Gilles Leymarie +author_title: Fondateur de Gladys Assistant +author_url: https://twitter.com/pierregillesl +author_image_url: /img/pierre-gilles.jpg +image: /img/presentation/gladys-4-48.jpg +slug: proactive-ai +--- + +Salut à tous ! + +Aujourd’hui, je suis heureux de vous présenter Gladys Assistant 4.48, une version où l’intelligence artificielle s’intègre encore plus profondément dans Gladys pour rendre votre maison encore plus intelligente et réactive. + +Depuis janvier 2023, vous pouviez déjà poser des questions à ChatGPT via Gladys. + +![ChatGPT Gladys Assistant](../../../static/img/articles/fr/gladys-4-48/chatgpt-gladys.jpg) + +C’était un bon début, mais je veux aller encore plus loin ! Et si l’IA pouvait être proactive et prendre des décisions pour vous ? + +## Imaginez les possibilités + +Imaginez qu’une voiture arrive devant chez vous. Un agent de sécurité dévoué surveillerait, reconnaîtrait votre voiture – sa forme, sa couleur, sa plaque – et saurait immédiatement que c’est bien vous. Mais embaucher un agent 24/24, ce n’est pas à la portée de tous ! + +Et si l’IA pouvait remplir ce rôle ? + +Dans Gladys, vous pouvez désormais écrire une instruction simple, par exemple : + +> “Si une voiture est devant la maison, et qu’il s’agit d’une Renault Mégane rouge immatriculée XXX, allume le garage ; sinon, préviens-moi qu’un intrus est là.” + +Avec Gladys 4.48, cette scène devient réalité ! Vous avez une IA généraliste prête à surveiller et à prendre des décisions, exactement comme un agent dédié, mais sans en payer le prix. + +## Un exemple concret + +Cette nouveauté repose sur l’API OpenAI ChatGPT 4o-mini, avec sa toute dernière fonctionnalité de vision, disponible pour les abonnés [Gladys Plus](/fr/plus/). + +Dans une scène, vous pouvez créer une action “Demander à l’IA” et, si vous le souhaitez, lui transmettre une image de caméra. + +Prenons l’exemple de la voiture : + +![IA Proactive Analyse caméra Gladys](../../../static/img/articles/fr/gladys-4-48/ask-ai-camera.png) + +Si un mouvement est détecté devant chez vous, Gladys enverra l’image de la caméra du garage et analysera la situation. Ensuite, selon la détection : + +- Si la bonne voiture est reconnue, le garage s’allume. +- Si une autre voiture est détectée, vous recevez une alerte d’intrus sur votre téléphone. + +## Analyser une valeur de capteur + +La caméra n’est qu’un exemple parmi tant d’autres ! Vous pouvez aussi envoyer des données de capteurs à l’IA et lui demander d’agir en fonction des résultats. + +Par exemple, vous pourriez transmettre la valeur d’un capteur de CO2 et demander une action en cas de niveau anormal : + +![IA Proactive Analyse Co2 capteur Gladys](../../../static/img/articles/fr/gladys-4-48/ask-ai-sensor.png) + +Pas besoin de chercher les niveaux recommandés de CO2 dans une pièce : l’IA se base sur ses connaissances étendues (en gros, tout internet !) pour évaluer la situation et agir intelligemment. + +Il est même possible d’injecter des valeurs récupérées d’autres API pour : + +- Recevoir un bulletin météo dès le réveil +- Suivre les marchés financiers avec un récapitulatif boursier +- Faire un point d’actualité avec un flux RSS +- Vérifier la sécurité de la maison chaque jour durant vos vacances (température normale, etc.) + +Les possibilités sont infinies ! J’ai vraiment hâte de voir ce que vous allez créer avec cette mise à jour. Partagez vos essais sur le forum pour inspirer les autres ! + +## Les autres nouveautés + +- Dans les scènes, les filtres par tag ou titre sont maintenant persistés dans l’URL, ce qui permet de retrouver facilement un filtre après avoir navigué dans les scènes. +- Support des chauffages fil-pilote dans les scènes. +- Les images de caméras sont maintenant récupérées via TCP (au lieu d'UDP), évitant les erreurs d’affichage (notamment le bug des bandes vertes). +- Correction des graphiques binaires : la première valeur s’affiche désormais correctement. +- DuckDB : les connexions sont maintenant fermées proprement lors de l’extinction de Gladys. + +Merci à tous ceux qui ont contribué à cette mise à jour ! 🙌 + +## Prêt à découvrir Gladys ? + +Si vous débutez et cherchez un kit tout-en-un, j’ai ce qu’il vous faut ! + +Je propose un pack incluant : + +- Un mini-PC surpuissant (celui que j’utilise chez moi !) +- Un accès à la formation Gladys (contenu vidéo et écrit) +- Un an de Gladys Plus + +Le tout pour un prix imbattable de [259,97€](/fr/starter-kit/) ! + +## Comment mettre à jour ? + +Assurez-vous d’utiliser Watchtower pour des mises à jour automatiques. Consultez la [documentation](/fr/docs/installation/docker#mise-à-jour-automatique-avec-watchtower). + +Avec Watchtower, Gladys se mettra à jour automatiquement. diff --git a/static/img/articles/en/gladys-4-48/ask-ai-camera.png b/static/img/articles/en/gladys-4-48/ask-ai-camera.png new file mode 100644 index 00000000..a63cef04 Binary files /dev/null and b/static/img/articles/en/gladys-4-48/ask-ai-camera.png differ diff --git a/static/img/articles/en/gladys-4-48/ask-ai-sensor.png b/static/img/articles/en/gladys-4-48/ask-ai-sensor.png new file mode 100644 index 00000000..d77fd7d5 Binary files /dev/null and b/static/img/articles/en/gladys-4-48/ask-ai-sensor.png differ diff --git a/static/img/articles/en/gladys-4-48/chatgpt-gladys.jpg b/static/img/articles/en/gladys-4-48/chatgpt-gladys.jpg new file mode 100644 index 00000000..7c560e0b Binary files /dev/null and b/static/img/articles/en/gladys-4-48/chatgpt-gladys.jpg differ diff --git a/static/img/articles/fr/gladys-4-48/ask-ai-camera.png b/static/img/articles/fr/gladys-4-48/ask-ai-camera.png new file mode 100644 index 00000000..0b68eac7 Binary files /dev/null and b/static/img/articles/fr/gladys-4-48/ask-ai-camera.png differ diff --git a/static/img/articles/fr/gladys-4-48/ask-ai-sensor.png b/static/img/articles/fr/gladys-4-48/ask-ai-sensor.png new file mode 100644 index 00000000..b11b37e7 Binary files /dev/null and b/static/img/articles/fr/gladys-4-48/ask-ai-sensor.png differ diff --git a/static/img/articles/fr/gladys-4-48/chatgpt-gladys.jpg b/static/img/articles/fr/gladys-4-48/chatgpt-gladys.jpg new file mode 100644 index 00000000..071e7f4c Binary files /dev/null and b/static/img/articles/fr/gladys-4-48/chatgpt-gladys.jpg differ diff --git a/static/img/presentation/gladys-4-48.jpg b/static/img/presentation/gladys-4-48.jpg new file mode 100644 index 00000000..672a80b3 Binary files /dev/null and b/static/img/presentation/gladys-4-48.jpg differ diff --git a/yarn.lock b/yarn.lock index e225a50b..76a55d87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2429,7 +2429,7 @@ "@docusaurus/theme-search-algolia" "3.2.1" "@docusaurus/types" "3.2.1" -"@docusaurus/react-loadable@5.5.2", "react-loadable@npm:@docusaurus/react-loadable@5.5.2": +"@docusaurus/react-loadable@5.5.2": version "5.5.2" resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce" integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== @@ -4083,9 +4083,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001400, caniuse-lite@^1.0.30001426, caniuse-lite@^1.0.30001587, caniuse-lite@^1.0.30001599: - version "1.0.30001614" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001614.tgz#f894b4209376a0bf923d67d9c361d96b1dfebe39" - integrity sha512-jmZQ1VpmlRwHgdP1/uiKzgiAuGOfLEJsYFP4+GBou/QQ4U6IOJCB4NP1c+1p9RGLpwObcT94jA5/uO+F1vBbog== + version "1.0.30001676" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001676.tgz" + integrity sha512-Qz6zwGCiPghQXGJvgQAem79esjitvJ+CxSbSQkW9H/UX5hg8XM88d4lp2W+MEQ81j+Hip58Il+jGVdazk1z9cw== ccount@^2.0.0: version "2.0.1" @@ -8923,6 +8923,14 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1: dependencies: "@babel/runtime" "^7.10.3" +"react-loadable@npm:@docusaurus/react-loadable@5.5.2": + version "5.5.2" + resolved "https://registry.yarnpkg.com/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz#81aae0db81ecafbdaee3651f12804580868fa6ce" + integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== + dependencies: + "@types/react" "*" + prop-types "^15.6.2" + react-router-config@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/react-router-config/-/react-router-config-5.1.1.tgz#0f4263d1a80c6b2dc7b9c1902c9526478194a988"