Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: "tanica-irrigatore"
- platform: ESP32
- board: esp32dev
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- password: !secret ota_password
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Testbed Fallback Hotspot"
- password: !secret wifi_password_fallback
- captive_portal:
- web_server:
- port: 80
- sensor:
- - platform: ultrasonic
- trigger_pin: GPIO25
- echo_pin: GPIO26
- name: "Ultrasonic Sensor"
- update_interval: 600s
- - platform: adc
- pin: GPIO32
- name: "Ultrasonic Sensor Voltage"
- update_interval: 600s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement