amc2021:groupb:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc2021:groupb:start [2021/09/07 00:06] – jonas002 | amc2021:groupb:start [2023/01/05 14:38] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 301: | Line 301: | ||
{{: | {{: | ||
- | If you encounter an 401: Unauthorized Error\\ | + | Go to Superviser - Add-ons and search for " |
+ | Click on install and wait for it to finish.\\ | ||
+ | Check all switches and start the application. In the logs you can find errors if it does not work. | ||
+ | {{: | ||
+ | |||
+ | {{: | ||
+ | If you encounter an 401: Unauthorized Error when opening the application from the sidebar:\\ | ||
Changing Enhanced tracking protection from strict to standard in firefox can solve the problem but using Google Chrome or a chromium based browser might allow the site to load.\\ | Changing Enhanced tracking protection from strict to standard in firefox can solve the problem but using Google Chrome or a chromium based browser might allow the site to load.\\ | ||
- | This is the configuration using Mosquitto MQTT broker, but we want to use ESPHome instead: | + | Open InfluxDB dashboard from the sidecard and create a new database named " |
- | < | + | {{:amc2021:groupb:2021-08-16-02-26-55.png? |
- | sensor: | + | |
- | - platform: mqtt | + | Allow the farmer user full acess to InfluxDB by typing in username and password and give all permissions\\ |
- | state_topic: ' | + | {{:amc2021:groupb:2021-08-16-02-27-53.png? |
- | name: '' | + | |
- | | + | Install Grafana as done with InfluxDB from the Add-on store.\\ |
- | influxdb: | + | Open Grafana dashboard and add the newly added InfluxDB "farm" as new source.\\ |
- | host: localhost | + | {{:amc2021:groupb:2021-08-16-02-48-14.png? |
- | port: 8086 | + | Input all necessary infos into the text fields\\ |
- | | + | {{:amc2021:groupb:2021-08-16-02-54-51.png? |
- | | + | {{: |
- | password: farmerpassword | + | |
- | max_retries: 3 | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | </ | + | |
**ESPHome** | **ESPHome** | ||
https:// | https:// | ||
- | https:// | + | Install from Add-On store and start it like done with the other two applications.\\ |
+ | Open ESPHome | ||
+ | Enter Wifi SSID and password and chose ESP32 as platform\\ | ||
+ | {{: | ||
+ | The basic configuration looks like this: | ||
+ | {{: | ||
- | Alternatively: Building Arch Package https:// | + | Click install and chose manual download\\ |
+ | {{:amc2021:groupb:2021-08-18-04-37-48.png? | ||
- | https://esphome.io/# | + | Let ESPHome compile the firmware and save it when finished\\ |
- | https://www.emadashi.com/2021/01/m5-atom-lite-home-assistant-esphome-and-capacitive-soil-sensor/\\ | + | {{: |
+ | |||
+ | A installation of ESPHome Flasher is required to flash the firmware to the ESP32. | ||
+ | The ESP32 should be connected via USB. | ||
+ | |||
+ | The software and install can be found here: https://github.com/esphome/ | ||
+ | |||
+ | Alternatively the arch package can be built: | ||
+ | |||
+ | Run in terminal: | ||
+ | < | ||
+ | Chose the binary file / firmware and click Flash ESP\\ | ||
+ | {{: | ||
+ | |||
+ | When the process was sucessfull, the ESP32 will connect to the wifi and the ESPHome integration and will show as online. From there on easy OverTheAir updates can be sent to this node.\\ | ||
+ | {{: | ||
+ | |||
+ | |||
+ | The devices and protocols that can be connected can be found documented here: https:// | ||
- | Measured voltage levels from Capacitive Soil Moisture Sensor: | ||
- | * 3.25V when dry in air | ||
- | * 1.45V when wet in a glass of water | ||
- | {{: | ||
- | {{ : | ||
To calibrate the sensor, this page is helpful: https:// | To calibrate the sensor, this page is helpful: https:// | ||
Line 390: | Line 408: | ||
</ | </ | ||
- | Home Assistant configuration.yaml addidtion to store the HA sensor values in the influxDB: | + | Measured voltage levels from Capacitive Soil Moisture Sensor: |
+ | * 3.25V when dry in air | ||
+ | * 1.46V when wet in a glass of water | ||
+ | Log output in ESPHome:\\ | ||
+ | {{: | ||
+ | |||
+ | After sucessfull OTA install the node should appear as a new device found in the Home Assistant Integrations.\\ | ||
+ | {{: | ||
+ | It can be added and will automatically be shown in the Home Assistant Dashboard / lovelace\\ | ||
+ | {{: | ||
+ | |||
+ | Soil moisture sensor in a glass of water and removing it: | ||
+ | {{ : | ||
+ | {{: | ||
+ | |||
+ | Install the File Editor Add-On to edit Home Assistant' | ||
+ | Home Assistant configuration.yaml addidtion to store the HA sensor values in the influxDB:\\ | ||
< | < | ||
influxdb: | influxdb: | ||
Line 405: | Line 440: | ||
</ | </ | ||
+ | Afterwards the recorded values can be observed in the grafana dashboard displaying the graph for soil moisture.\\ | ||
+ | {{: | ||
==== 4. Discussion ==== | ==== 4. Discussion ==== | ||
The system is not finalized and needs to expanded to work independantly of human input or observation. | The system is not finalized and needs to expanded to work independantly of human input or observation. | ||
+ | The relay module is not added to ESPHome yet, but integration is simple. | ||
+ | The Gafana plot can be added to the Home Assistant dashboard for an easier overview of the current and past soil moisture values. | ||
The automations and deciscion making algorithms need to be refined and expanded to ensure proper working autonomous farm operation. | The automations and deciscion making algorithms need to be refined and expanded to ensure proper working autonomous farm operation. | ||
There are already prebuilt systems for farming management or IoT cloud but building our own system from freely available software has given many insights on how the IoT infrastructure works and how to connect multiple devices to a central instance.\\ | There are already prebuilt systems for farming management or IoT cloud but building our own system from freely available software has given many insights on how the IoT infrastructure works and how to connect multiple devices to a central instance.\\ |
amc2021/groupb/start.1630966013.txt.gz · Last modified: 2023/01/05 14:38 (external edit)