2017-03-02 17:33:40 +01:00
2017-03-02 17:14:09 +01:00
2017-03-02 17:14:09 +01:00
2017-03-02 17:14:09 +01:00
2017-03-02 17:14:09 +01:00
2017-03-02 17:14:09 +01:00
2017-03-02 17:33:40 +01:00
2017-03-02 17:14:09 +01:00
2017-03-02 17:33:40 +01:00
2017-03-02 17:14:09 +01:00

Introduction

Simple blink qui toggle la led à chaque appel MQTT.
Pour mettre la LED du port D0 à ON :

mosquitto_pub -d -u "<USER>" -P "<PASS>" -t "<TOPIC>" -m "ON"

Pour la mettre à Off :

mosquitto_pub -d -u "<USER>" -P "<PASS>" -t "<TOPIC>" -m "OFF"

Un exemple de configuration pour home-assistant se trouve dans ha_configuration.yml.

Matériel

  • 1x ESP8266 Lolin (Nodemcu v3)
  • 1x Breadboard
  • 1x Resistance 220Ω (jusqu'à 1kΩ)
  • 1x LED

Médias

Fritzing BreadBoard IRL

Description
Controle d'une LED au travers de Home Assistant
Readme 992 KiB
Languages
C++ 82.5%
C 17.5%