You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
606B

  1. esphome:
  2. name: livingroom_watersensor1
  3. platform: ESP8266
  4. board: nodemcu
  5. # Set up Wifi
  6. wifi:
  7. domain: .lan
  8. ssid: !secret wifi_ssid
  9. password: !secret wifi_password
  10. # Enable logging
  11. logger:
  12. # Enable Home Assistant API
  13. api:
  14. password: !secret api_password
  15. # Enable OTA updates
  16. ota:
  17. password: !secret ota_password
  18. # Configure ADC to read moisture data and output percentage
  19. sensor:
  20. - platform: adc
  21. pin: A0
  22. name: "Chilli Moisture Sensor"
  23. unit_of_measurement: "%"
  24. filters:
  25. - calibrate_linear:
  26. - 0.30 -> 100.00
  27. - 0.90 -> 0.00
  28. update_interval: 60s