Controle d'une LED au travers de Home Assistant
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
643 B

3 years ago
3 years ago
  1. Introduction
  2. ============
  3. Simple blink qui toggle la led à chaque appel MQTT.
  4. Pour mettre la LED du port D0 à ON :
  5. ```bash
  6. mosquitto_pub -d -u "<USER>" -P "<PASS>" -t "<TOPIC>" -m "ON"
  7. ```
  8. Pour la mettre à Off :
  9. ```bash
  10. mosquitto_pub -d -u "<USER>" -P "<PASS>" -t "<TOPIC>" -m "OFF"
  11. ```
  12. Un exemple de configuration pour home-assistant se trouve dans [ha_configuration.yml](home-assistant/ha\_configuration.yml).
  13. Matériel
  14. ========
  15. * 1x ESP8266 Lolin (Nodemcu v3)
  16. * 1x Breadboard
  17. * 1x Resistance 220Ω (jusqu'à 1kΩ)
  18. * 1x LED
  19. Médias
  20. ======
  21. ![Fritzing BreadBoard](medias/mqttled_bb.png)
  22. ![IRL](medias/IMG_0214.jpg)