Project Smart home - Anemometer + Humidity + Light intensity
In order to get information from outside of the house - to be able control house equipment (as electric sunblinds on windows) according weather conditions - I cretated a this Weather station.
Weather station collect a data about wind speed, intensity of light, humidity and temperature.
Data are sent in realtime to Homeassistant where I can trigger various scenarios.
Too high speed of wind? -> roll-up blinds to covers.
High intensity of light? -> roll blinds down to shield inside
(can be varied with actual time, and roll down covers only on one side of House - e.g. west side of house on afternnoon)



ESPhome - code:
esphome:
name: roof_anemometer
platform: ESP32
board: esp-wrover-kit
wifi:
ssid: "RAIVIoT"
password: "64646464"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Anemometer Fallback Hotspot"
password: "64640"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "xxx"
ota:
password: "xxx"
web_server:
port: 80
time:
- platform: sntp
id: esptime
timezone: europe/prague
servers: 10.168.100.254
i2c:
sda: 21
scl: 22
scan: True
id: bus_a
sensor:
- platform: dht
pin: 13
model: DHT11
temperature:
name: "Roof Temperature"
humidity:
name: "Roof Humidity"
update_interval: 60s
- platform: bh1750
name: "BH1750 Illuminance"
address: 0x23
measurement_duration: 69
update_interval: 60s
- platform: pulse_counter
pin: 10
unit_of_measurement: 'Km/h'
name: 'Anemometer House'
update_interval: 60s
filters:
- multiply: 0.018 # 0.018(1 pulz = 0,3m/s - (x/60)*0.3*3.6 [30s]