Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: oillevel
- esp8266:
- board: d1_mini
- wifi:
- networks:
- - ssid: "χχχχ"
- password: "χχχχ"
- # manual_ip:
- # static_ip: 192.168.1.81
- # gateway: 192.168.1.1
- # subnet: 255.255.255.0
- # dns1: 8.8.8.8
- # dns2: 8.8.4.4
- - ssid: "χχχχ"
- password: "χχχχχ"
- # manual_ip:
- # static_ip: 192.168.1.81
- # gateway: 192.168.1.1
- # subnet: 255.255.255.0
- # dns1: 8.8.8.8
- # dns2: 8.8.4.4
- #
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Oil Level Fallback Hotspot"
- password: "χχχχ"
- captive_portal:
- # Enable logging
- logger:
- level: DEBUG
- # Enable Home Assistant API
- api:
- encryption:
- key: "χχχχχ"
- ota:
- platform: esphome
- password: "χχχχ"
- web_server:
- port: 80
- switch:
- - platform: restart
- name: "oil_level Restart"
- time:
- - platform: sntp
- id: sntp_time
- servers: 0.pool.ntp.org
- status_led:
- pin:
- number: D4
- inverted: True
- # Example configuration WiFi Info Text Sensor
- text_sensor:
- - platform: wifi_info
- ip_address:
- name: ESP IP Address
- ssid:
- name: ESP Connected SSID
- bssid:
- name: ESP Connected BSSID
- mac_address:
- name: ESP Mac Wifi Address
- scan_results:
- name: ESP Latest Scan Results
- # Example configuration entry
- sensor:
- - platform: ultrasonic
- trigger_pin: D1
- echo_pin: D2
- update_interval: 60sec
- accuracy_decimals: 1
- #unit_of_measurement: "m"
- name: "Ultrasonic Sensor"
- filters:
- - sliding_window_moving_average:
- window_size: 10 #creates a moving average of the last 10 values
- send_every: 1 #sends the moving average at every measurement (but only if it passes the delta filter below))
- send_first_at: 1 #after startup immediately start sending the result rather than wait for the first 10 measurements
- - delta : 0.05 #only send the result if the level difference with the last sent result is higher than this
- - filter_out: nan
- # I multiplied by 100 in order to get CM since the sensor works in meters
- - lambda: return x*100;
- unit_of_measurement: "cm"
- - platform: wifi_signal
- name: "WiFi Signal Sensor"
- update_interval: 60s
Add Comment
Please, Sign In to add comment