96 lines
1.6 KiB
YAML
96 lines
1.6 KiB
YAML
esphome:
|
|
name: wurmkomposter
|
|
|
|
esp8266:
|
|
board: nodemcuv2
|
|
|
|
logger:
|
|
level: VERBOSE
|
|
|
|
api:
|
|
password: !secret api_password
|
|
|
|
ota:
|
|
password: !secret ota_password
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
|
|
ap:
|
|
ssid: !secret ap_ssid
|
|
password: !secret ap_password
|
|
|
|
captive_portal:
|
|
|
|
web_server:
|
|
port: 80
|
|
local: true
|
|
|
|
mqtt:
|
|
broker: !secret mqtt_broker
|
|
|
|
time:
|
|
- platform: sntp
|
|
timezone: Europe/Berlin
|
|
on_time:
|
|
- hours: 10
|
|
minutes: 00
|
|
seconds: 00
|
|
then:
|
|
- switch.turn_on: pump
|
|
- hours: 10
|
|
minutes: 05
|
|
seconds: 00
|
|
then:
|
|
- switch.turn_off: pump
|
|
- hours: 22
|
|
minutes: 00
|
|
seconds: 00
|
|
then:
|
|
- switch.turn_on: pump
|
|
- hours: 22
|
|
minutes: 05
|
|
seconds: 00
|
|
then:
|
|
- switch.turn_off: pump
|
|
|
|
switch:
|
|
- platform: gpio
|
|
name: pump
|
|
id: pump
|
|
pin: D5
|
|
inverted: true
|
|
|
|
sensor:
|
|
- platform: dht
|
|
pin: D6
|
|
temperature:
|
|
name: "Worm composter Temperature Top"
|
|
humidity:
|
|
name: "Worm composter Humidity Top"
|
|
update_interval: 60s
|
|
|
|
- platform: dht
|
|
pin: D7
|
|
temperature:
|
|
name: "Worm composter Temperature Center"
|
|
humidity:
|
|
name: "Worm composter Humidity Center"
|
|
on_value_range:
|
|
- below: 50.0
|
|
then:
|
|
- switch.turn_on: pump
|
|
- above: 90.0
|
|
then:
|
|
- switch.turn_off: pump
|
|
update_interval: 60s
|
|
|
|
- platform: dht
|
|
pin: D2
|
|
temperature:
|
|
name: "Worm composter Temperature Bottom"
|
|
humidity:
|
|
name: "Worm composter Humidity Bottom"
|
|
update_interval: 60s
|