Skip to content

nliaudat/floor-heating-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

floor-heating-controller

esphome firmware for esp32_8ch_motor_shield

#install esphome

pip install --upgrade esphome

#Preparation

  • Check the wiki
  • Adapt config.yaml to your needs
  • Adapt sensor_temperature.yaml with your temperature sensors
  • Adapt wifi.yaml + secrets.yaml

#1st time upload :

  • Detach the ESP32 board from the shield and connect it the through usb
  • for flashing : press boot button for 2-3 seconds before the serial connection initialize
  • After OTA update, the EN (reset) button must be pressed to run firmware
  • do not use gpio12 (MTDI)
  • the future binary upload will go trough OTA wireless

#compile to check for errors

esphome compile config.yaml

#compile & upload

esphome run config.yaml

Using ESPNOW for the pump controller

Add the following to your esp relay config:

espnow:
  peers:
    - "{MAC ADDRESS OF THE FLOOR HEATING CONTROLLER}"
  auto_add_peer: False
  on_receive:
    - lambda: |-
        std::string received_data((const char*)data, size);
        ESP_LOGI("espnow", "Received ESP-NOW message: %s", received_data.c_str());

        if (received_data == "PUMP_ON") {
          id(relay).turn_on();
          ESP_LOGI("espnow", "ESP-NOW: Executed PUMP_ON command.");
        } else if (received_data == "PUMP_OFF") {
          id(relay).turn_off();
          ESP_LOGI("espnow", "ESP-NOW: Executed PUMP_OFF command.");
        }

About

esphome firmware for esp32_8ch_motor_shield

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published