Hello
I have a problem and could not solve sine a few weeks. I have stated to prepare Higrowplant sensor with ESP32 in Hassio. Installed the start firmware prepared by hassio esp32. Then i have adapted to my sensor. Lilygo Higrow with BME sensor. But now i have an update available and couldn update the esp32.
My error messge is:
INFO ESPHome 2023.7.0
INFO Reading configuration /config/esphome/lilygohigrowplantsensor-7fcb75.yaml…
ERROR Error while reading config: Invalid YAML syntax:
while parsing a block mapping
in “/config/esphome/lilygohigrowplantsensor-7fcb75.yaml”, line 86, column 4:
- platform: gpio
^
expected , but found ‘’
in “/config/esphome/lilygohigrowplantsensor-7fcb75.yaml”, line 88, column 5:
name: lilygohigrowplantsensor-7fcb75
^
Have someone an idea what i do wrong?
Thank you in advance.
regards
YAML:
substitutions:
name: lilygohigrowplantsensor-7fcb75
Dashes are not supported in devicename
#devicename: ‘esphomebalcone1’
device_description: ‘Keep my plants safe and lively’
project_version: ‘1.0’
update_interval: 30min
loglevel: DEBUG
moisture_min: ‘2.82’
moisture_max: ‘1.39’
conductivity_min: ‘0.075’
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
set how long to sleep in minutes
sleep_duration: 60min
packages:
esphome.project-template: github://bruvv/LILYGO-T-Higrow-Esphome/LILYGO-T-Higrow-ESP32.yaml@main
text_sensors: !include text_sensors.yaml
#dht: !include common/dht.yaml
plantsensors: !include plantsensors.yaml
#waterpump: !include waterpump.yaml
bluetooth: !include bluetooth.yaml
Battery only works for 12 hours with deepsleep!
bme280: !include bme280.yaml
deepsleep: !include deepsleep.yaml
battery: !include common/battery.yaml
esphome:
name: ${name}
name_add_mac_suffix: false
api:
encryption:
key: FZ9I2OoSxXgPQRbedbWoinxIiFctCUiS6QEiEITPaHs=
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "esphome-7Fcb75"
password: "aUH6FwlYHiQl"
#esphome:
name: esphome-web-7fcb75
friendly_name: ESPHome_balcone1
esp32:
board: esp32dev
framework:
type: arduino
Enable logging
logger:
Enable Home Assistant API
#api:
encryption:
key: “JlFoZVjLJvD+MDtKflmg5vjreEwQmu6+WGUkLYTPN2M=”
#ota:
ota:
safe_mode: true
reboot_timeout: 10min
num_attempts: 5
Enable fallback hotspot (captive portal) in case wifi connection fails
time:
button:
i2c:
sda: 25
scl: 26
scan: true
id: bus_a
setup_priority: -200
switch:
Power Switch
sensor:
Wifi sensor
-
platform: wifi_signal
name: ‘${devicename} WiFi Signal’
id: ‘${devicename}_wifi_signal’
update_interval: ${update_interval}
captive_portal:
[quote="ilan, post:1, topic:144053, full:true"]
I'm trying desperately to get this Soil/moisture/temp/hum/light package running in esphome, I'm getting nowhere. Its the newer (?) 1.1 version, and the only thing I can find online is for the older version, which was of little help.
The only docs for this new version are here https://github.com/Xinyuan-LilyGO/TTGO-HiGrow which, after parsing thru the code seems to declare the pins, but esphome is not picking up on any of the sensors aside from the soil salt sensor (pin 34). DHT12 seems to be in one-wire mode as opposed to i2c, the bh1750 light sensor is not being found with an i2c scan, just a big mess.
Hoping you guys can shed some insite of something I missed?!
DHT12 when configured like the esphome docs ( https://esphome.io/components/sensor/dht12.html ) got nothing as well, I think its an i2c config issue.
esphome:
name: higrow1
platform: ESP32
board: nodemcu-32s #tried multiple board types, including lolin_d32
wifi:
ssid: “nopenope”
password: “nopenope”
manual_ip:
static_ip: n.o.p.e
gateway: n.o.p.e
subnet: n.o.p.e
fast_connect: true
Enable logging
logger:
Enable Home Assistant API
api:
i2c:
sda: 25
scl: 26
scan: True
ota:
sensor:
- platform: dht
model: AUTO_DETECT
pin:
number: 16
mode: input
temperature:
name: “HiGrow1 Temperature”
humidity:
name: “HiGrow1 Humidity”
update_interval: 60s
setup_priority: -100
- platform: adc
pin: 32
name: “HiGrow1 Soil”
update_interval: 60s
- platform: adc
pin: 34
name: “HiGrow1 Salt”
update_interval: 60s
- platform: bh1750
name: “BH1750 Illuminance”
address: 0x23
update_interval: 60s
It compiles fine, uploads and connects to wifi. Cant find any of the i2c components. No idea what I'm missing here. any help will be appreciated!!
[/quote]
Processing: lilygohigrowplantsensor-7fcb75(1).yaml…