Skip to content

fly3rman/arduino-esp8266-MQTTLightButtonSwitch3State

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

An ESP8266 (Wemos D1 Mini) based Pushbutton for home automatisation

This Button can differentiate between three different actions (Click, DoubleClick and LongPress) and send an event to the MQTT Broker. I use this to control my MiLight system with the help of Node-Red.

Software requirements:

Hardware:

You probably need to change the folliwing lines: in /data/homie/config.json

  • Change your WiFi SSID and password here
  "wifi": {
        "ssid": "xxx",
        "password": "yyy"
    }
  • Change this to your MQTT-broker IP
  "mqtt": {
        "host": "192.168.178.34"
  }

and in MQTTLightButtonSwitch3State.ino

  • If your button is attached to a different pin, change the name here:
  OneButton button(D3, true);

Upload the configuration in Arduino IDE with Tools->ESP8266 Sketch Data Upload. Compile and Upload the code with Arduino IDE to your ESP8266.

About

This Button can differentiate between three different actions (Click, DoubleClick and LongPress) and send an event to the MQTT Broker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%