in one of the last posts we showed you how easy it is to install ESP Easy with PlatformIO on a controller. Today we want to connect a sensor and deal with the configuration of the controller.
If we have successfully flashed ESP_Easy and connected to our WiFi after connecting in AccessPoint mode, we can start with the configuration. If we call up the DHCP address of the ESP via our browser, we end up on the main page:
First we should password-protect our device, under Config there is the option to assign an admin password and change the unit number from 0 to 1:
Under Controllers we configure how and where the sensor value should be transferred, more on that later:
In the Hardware tab we don't need to configure anything with our hardware, but we do see the I2C pins:
Under Devices we create our sensor using the "Edit" button:
We have here for one BME280 decided:
We enter the following data for testing:
After "Submit" and "Close" we can already see ...
... the data of our sensor and switch to the "Controllers" tab and can configure what should happen to the sensor data. We choose the first entry via "Edit". Various protocols are supported:
In a previous article we showed how to install OpenHAB, but have not yet configured a broker so we cannot use this example. If you opt for "-Standalone-" nothing happens, you can call up the data via the web interface.
Also worth mentioning is the "Tools" tab
The controller can be addressed via the command line via the command line, reboot, log and info are self-explanatory. Under "Advanced" you will find further configuration options.
The checkmark at "Rules" activates a new tab in which we create rules for automation. However, since most users implement this via their smart home system, this function is now deactivated by default.
Tip: If you use the Thingsspeak platform in conjunction with several sensors, you should increase the "Message Delay" value from 1000 to 15000 ms.
If your ESP Easy would like to know the time, you can tick NTP and enter "0.de.pool.ntp.org".
This ends today's post, see you next time :)