config files on 28-11-2023 12:46:43

This commit is contained in:
2023-11-28 12:46:43 +01:00
parent 9cc6076da0
commit 423d32fada
101 changed files with 167879 additions and 3008 deletions

View File

@@ -12,7 +12,6 @@ substitutions:
ip: !secret plant_sensor1
#project specific params
project_version: '1.0'
update_interval: 30min
loglevel: DEBUG
moisture_min: '2.82'
moisture_max: '1.39'
@@ -20,11 +19,15 @@ substitutions:
conductivity_max: '0.25'
# Uncomment run_duration and sleep_duration if you want to use deepsleep
# set how long to stay awake - NOT less then 10sec
run_duration: 11s
run_duration: 15s
update_interval: 5s
# set how long to sleep in minutes
sleep_duration: 10min
sleep_duration: 60min
mqtt_broker_ip: !secret mqtt_broker_ip
mqtt_broker_user: !secret mqtt_broker_user
mqtt_broke_pass: !secret mqtt_broker_pass
mqtt_ota_topic: "esphomeOTA/plant"
pin_power: GPIO4
pin_sda: GPIO25
pin_scl: GPIO26
pin_wake: GPIO35
@@ -32,64 +35,18 @@ substitutions:
pin_fertilizer: GPIO34
pin_soil: GPIO32
esphome:
name: '${device_name}'
comment: '${comment}'
on_boot:
priority: 240
then:
- wait_until:
condition:
wifi.connected:
timeout: 10s
on_shutdown:
then:
- switch.turn_off: spower
esp32:
board: lolin_d32
packages:
board: !include boards/esp32_lolin32.yaml
device_base: !include common/common.yaml
connection: !include common/wifi.yaml
i2c: !include interfaces/i2c_a.yaml
logger: !include templates/nologger.yaml
bluetooth: !include common/bluetooth.yaml
deepsleep: !include common/deepsleep.yaml
deepsleep: !include common/deepsleep_wakepin.yaml
time: !include templates/time.yaml
#sensors
plantsensors: !include sensors/plantsensors.yaml
light: !include sensors/light_bh1750.yaml
bme280: !include sensors/bme280.yaml
battery: !include sensors/battery.yaml
time:
- platform: homeassistant
button:
- platform: restart
name: 'Restart - ${device_name}'
switch:
# Power Switch
- platform: gpio
name: '${device_name} Sensor Power switch'
pin:
number: 4
mode: INPUT_PULLUP
id: spower
restore_mode: ALWAYS_ON
internal: true
setup_priority: 1000
# packages:
# text_sensors: !include common/text_sensors.yaml
# dht: !include common/dht.yaml
# plantsensors: !include common/plantsensors.yaml
# waterpump: !include common/waterpump.yaml
# bluetooth: !include common/bluetooth.yaml
# Battery only works for 12 hours with deepsleep!
# bme280: !include common/bme280.yaml
# deepsleep: !include common/deepsleep.yaml
# battery: !include common/battery.yaml