Skip to content

esp8266 based sensor that can be configured via web ui and transmits its readings via MQTT

License

Notifications You must be signed in to change notification settings

SveLil/ConfigurableMQTTSensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConfigurableMQTTSensor Build Status Codacy Badge

A ESP8266 based sensor that will send its updates to a MQTT server. The goal of this project was to create one firmware that fits all my sensors at home. It should be possible to do all specific configuration through the web UI.

Usage

Build and flash to your esp8266 board. When powered on, the board will open a new access point, named "ESP Sensor ". After connecting to it, open a web browser and navigate to http://esp.sensor or http://192.168.4.1

You can then enter the credentials of your network: wifi credentials screenshot

You can either fill in the SSID by hand or scan for existing access points.

After your sensor is connected to a network, you can enter the information for the MQTT server: MQTT information screenshot

The base topic is used for all sensors connected to the ESP8266. For each sensor, the name will be added, if a sensor has several sub-sensors (like the DTH22). the type (temperature, humidity, etc) will be added, e.g.:

baseTopic/sensorName/temperature = 26.70
baseTopic/sensorName/humidity = 43

On the third tab, you can add/edit/delete information about the sensors that are connected to your board: empty sensor information screenshot

TODO

  • Cleanup HTML, CSS + JavaScript
  • Cleanup serial output
  • Implement update function through webserver (see HTTPUpdateServer)
  • Implement OTA update
    • Either via web server or MQTT driven
  • Enable sleep mode
    • Through UI
    • Through physical switch
  • Add maximum number of sensors in UI
  • Show debug output for errors in UI
  • Add units to sensor output
  • Add sensor specific config (for digital and analog)

About

esp8266 based sensor that can be configured via web ui and transmits its readings via MQTT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published