irrigation-system

frozendragon authored 2 hours ago
.idea Fully works with one valve now 4 days ago
code Fully works with one valve now 4 days ago
config Fixed the device_class of water flow rate 2 hours ago
CMakeLists.txt Added c++ code to toggle 6 days ago
Makefile Fully works with one valve now 4 days ago
README.md Added c++ code to toggle 6 days ago
bluetooth-proxy.yaml Adding c++ code for controlling the esp32 8 days ago
docker-compose.yaml Adding c++ code for controlling the esp32 8 days ago
encryption key.txt init 13 days ago
README.md

How to clean build cache

docker-compose exec esphome rm -rf /config/.esphome/build

docker-compose exec esphome rm -rf /config/.esphome/platformio

docker-compose exec esphome rm -rf /root/.platformio

docker-compose exec esphome esphome compile irrigation-system-controller.yaml

Framework (esp-idf vs arduino)

arduino is more beginner friendly, esp-idf offers more control.

The code between the frameworks are completely different. Here is an example

arduino

pinMode(5, OUTPUT); // Set GPIO5 as output digitalWrite(5, HIGH); // Set GPIO5 HIGH

esp-idf

gpio_set_direction(GPIO_NUM_5, GPIO_MODE_OUTPUT); gpio_set_level(GPIO_NUM_5, 1);