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.
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:
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:
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:
- 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)