Weerstation met Wemos D1 Mini met sensoren voor regen, temperatuur, luchtvochtigheid, luchtdruk en lichtopbrengst.

  • Regensensor (FC-37 via LM393)
  • Temperatuur / Luchtvochtigheid / Luchtdruk (BME260)
  • Lichtopbrengst (BH1750)
  • Wemos D1 Mini

 ESPHome YAML:

substitutions:
  display_name: Weerstation

esphome:
  name: weerstation
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  power_save_mode: none
  manual_ip:
    static_ip: 192.168.178.218
    gateway: 192.168.178.1
    subnet: 255.255.255.0      

  ap:
    ssid: "Weerstation Fallback Hotspot"
    password: !secret ap_fallback_password

captive_portal:

i2c:
  sda: D1
  scl: D2
  scan: True

logger:
  
api:

ota:

binary_sensor:
  - platform: gpio
    pin: 
      number: D3
      inverted: True
    name: ${display_name} regen
    device_class: moisture
    filters:
      - delayed_on_off: 10000ms
      
sensor:      
  - platform: wifi_signal
    name: WiFi signaal ${display_name}
    update_interval: 60s    
    
  - platform: uptime
    name: Uptime Sensor ${display_name} 
    filters:
      - lambda: return x / 3600.0;
    unit_of_measurement: "hours"
    accuracy_decimals: 2    

  - platform: bh1750
    name: ${display_name} lichtopbrengst
    address: 0x23
    update_interval: 15s      
    
  - platform: bme280
    address: 0x76
    update_interval: 15s
    temperature:
      name: ${display_name} Temperatuur
      id: bme280_temperature
      oversampling: 16x
      filters:
      - offset: -1.6
    pressure:
     name: ${display_name} luchtdruk
     id: bme280_pressure
    humidity:
     name: ${display_name} luchtvochtigheid
     id: bme280_humidity
     
text_sensor:
  - platform: wifi_info
    ip_address:
      name: IP adres ${display_name}
    ssid:
      name: SSID ${display_name}