Advertisement
Ciccius

esp-sonic-tanica-irrigatore

Oct 19th, 2022 (edited)
26
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. esphome:
  2. name: "tanica-irrigatore"
  3. platform: ESP32
  4. board: esp32dev
  5.  
  6. # Enable logging
  7. logger:
  8.  
  9. # Enable Home Assistant API
  10. api:
  11.  
  12. ota:
  13. password: !secret ota_password
  14.  
  15. wifi:
  16. ssid: !secret wifi_ssid
  17. password: !secret wifi_password
  18.  
  19. # Enable fallback hotspot (captive portal) in case wifi connection fails
  20. ap:
  21. ssid: "Testbed Fallback Hotspot"
  22. password: !secret wifi_password_fallback
  23.  
  24. captive_portal:
  25.  
  26. web_server:
  27. port: 80
  28.  
  29. sensor:
  30. - platform: ultrasonic
  31. trigger_pin: GPIO25
  32. echo_pin: GPIO26
  33. name: "Ultrasonic Sensor"
  34. update_interval: 600s
  35.  
  36. - platform: adc
  37. pin: GPIO32
  38. name: "Ultrasonic Sensor Voltage"
  39. update_interval: 600s
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement