johannlamb

Untitled

Nov 15th, 2024
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. esphome:
  2. name: oillevel
  3.  
  4. esp8266:
  5. board: d1_mini
  6.  
  7. wifi:
  8. networks:
  9. - ssid: "χχχχ"
  10. password: "χχχχ"
  11. # manual_ip:
  12. # static_ip: 192.168.1.81
  13. # gateway: 192.168.1.1
  14. # subnet: 255.255.255.0
  15. # dns1: 8.8.8.8
  16. # dns2: 8.8.4.4
  17. - ssid: "χχχχ"
  18. password: "χχχχχ"
  19. # manual_ip:
  20. # static_ip: 192.168.1.81
  21. # gateway: 192.168.1.1
  22. # subnet: 255.255.255.0
  23. # dns1: 8.8.8.8
  24. # dns2: 8.8.4.4
  25. #
  26.  
  27. # Enable fallback hotspot (captive portal) in case wifi connection fails
  28. ap:
  29. ssid: "Oil Level Fallback Hotspot"
  30. password: "χχχχ"
  31.  
  32. captive_portal:
  33. # Enable logging
  34. logger:
  35. level: DEBUG
  36.  
  37. # Enable Home Assistant API
  38. api:
  39. encryption:
  40. key: "χχχχχ"
  41.  
  42.  
  43. ota:
  44. platform: esphome
  45. password: "χχχχ"
  46.  
  47.  
  48. web_server:
  49. port: 80
  50.  
  51. switch:
  52. - platform: restart
  53. name: "oil_level Restart"
  54.  
  55. time:
  56. - platform: sntp
  57. id: sntp_time
  58. servers: 0.pool.ntp.org
  59.  
  60.  
  61. status_led:
  62. pin:
  63. number: D4
  64. inverted: True
  65. # Example configuration WiFi Info Text Sensor
  66. text_sensor:
  67. - platform: wifi_info
  68. ip_address:
  69. name: ESP IP Address
  70. ssid:
  71. name: ESP Connected SSID
  72. bssid:
  73. name: ESP Connected BSSID
  74. mac_address:
  75. name: ESP Mac Wifi Address
  76. scan_results:
  77. name: ESP Latest Scan Results
  78. # Example configuration entry
  79. sensor:
  80. - platform: ultrasonic
  81. trigger_pin: D1
  82. echo_pin: D2
  83. update_interval: 60sec
  84. accuracy_decimals: 1
  85. #unit_of_measurement: "m"
  86. name: "Ultrasonic Sensor"
  87. filters:
  88. - sliding_window_moving_average:
  89. window_size: 10 #creates a moving average of the last 10 values
  90. send_every: 1 #sends the moving average at every measurement (but only if it passes the delta filter below))
  91. send_first_at: 1 #after startup immediately start sending the result rather than wait for the first 10 measurements
  92. - delta : 0.05 #only send the result if the level difference with the last sent result is higher than this
  93. - filter_out: nan
  94. # I multiplied by 100 in order to get CM since the sensor works in meters
  95. - lambda: return x*100;
  96. unit_of_measurement: "cm"
  97.  
  98. - platform: wifi_signal
  99. name: "WiFi Signal Sensor"
  100. update_interval: 60s
  101.  
Add Comment
Please, Sign In to add comment