HomeAssistant2ESP is a mini-project that empowers you to seamlessly retrieve data from Home Assistant using MQTT and display it in real-time on an OLED Shield screen. Say goodbye to the hassle of constantly checking your phone or logging into Home Assistant whenever you need this information!
The hardware cost for this project is approximately €4 on AliExpress. (Note: I do not sell any products, nor am I endorsing specific products or websites.)
Before you begin, ensure you have the following items:
This project is not affiliated with any particular supplier or website, so you can purchase these components from your preferred source.
-
Configure Home Assistant:
- Add the following three YAML automations to your Home Assistant configuration, replacing "sensor.XXXXXX" with your specific configuration. You can add more or fewer data points as needed; just be sure to adjust the .ino file accordingly.
-
Set Up Arduino:
- Fill in the configuration data within the HomeAssistant2ESP8266.ino file and compile it using the Arduino IDE while connecting the ESP8266 to your computer (only during the initial installation).
If you have never compiled Arduino code before, consider following the essential tutorials available here: How to Install the ESP8266 Board in the Arduino IDE.
If you encounter any issues, please do not hesitate to create a ticket in the "Issues" section. I assure you that I will respond!
To summarize, the steps involved in this project are:
- Publishing messages in Home Assistant via MQTT.
- Listening to and capturing information using ESP8266 and displaying it on an OLED Shield screen.
Ce mini-projet vous permet de récupérer des données depuis Home Assistant, via le protocole MQTT, et de les afficher en temps réel sur un écran OLED Shield. Plus besoin de consulter votre téléphone ou de vous connecter à Home Assistant à chaque fois que vous avez besoin de ces informations !
Le coût du matériel nécessaire est d'environ 4€ sur AliExpress. (Note : Je ne vends aucun produit, ni ne fais la promotion de produits ou de sites spécifiques.)
Avant de commencer, assurez-vous d'avoir les éléments suivants :
Ce projet n'est affilié à aucun fournisseur ou site spécifique, vous pouvez donc acheter ces composants où vous le souhaitez.
-
Ajoutez les trois automatisations YAML suivantes dans Home Assistant, en remplaçant "sensor.XXXXXX" par votre propre configuration. Vous pouvez ajouter plus ou moins de données, à condition d'adapter le fichier .ino en conséquence.
-
Remplissez les données de configuration dans le fichier HomeAssistant2ESP8266.ino et compilez-le avec l'Arduino IDE en connectant l'ESP8266 à votre ordinateur (uniquement lors de l'installation initiale).
Si vous n'avez jamais compilé de code Arduino auparavant, je vous recommande de suivre les tutoriels essentiels disponibles ici : Comment installer la carte ESP8266 dans l'IDE Arduino.
Si vous rencontrez des problèmes, n'hésitez pas à créer un ticket dans la section "Issues" (Problèmes). Je vous assure que je répondrai !
En conclusion, les étapes de ce projet consistent à :
- Publier des messages dans Home Assistant via MQTT
- Écouter et capturer les informations via ESP8266, puis les afficher sur un écran OLED Shield.
