Hey ho,
I am trying to configure a Grove Water Level Sensor using this GitHub link. I am using a Wemos Mini D1.
Now the thing is - as soon as I add I2C and the water sensor, the device randomly does not boot up anymore - actually it more often does not boot than it boots. With not booting I mean that I don’t see the device as connected in ESPHome - when trying to get logs via USB I just see an empty black box where the logs should be, completely no output.
This somehow happens no matter whether the I2C device is attached or not.
Now I am wondering:
- Does the device only boot when it has found an I2C device? Can I change this?
- Am I just being stupid and there is something I am completely doing wrong? By now I already tried two sensors, both with the same outcome. Also changing GPIO ports does not help, the outcome seems to be always the same.
- Why does it sometimes work and sometimes not?
Does anyone maybe have an idea what I could try to solve this issue?
Thank you so much
Matthias
Configuration:
esphome:
name: my-wemos
friendly_name: Test Device
includes:
- grove_water_level_sensor.h
debug:
update_interval: 5s
esp8266:
board: esp01_1m
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
api:
#encryption:
# key: "..."
ota:
password: "..."
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "..."
password: ".."
captive_portal:
i2c:
sda: 15
scl: 13
scan: True
id: bus_a
sensor:
- platform: custom
lambda: |-
auto my_sensor = new WaterLevelSensor();
App.register_component(my_sensor);
return {my_sensor};
sensors:
name: "water"
id: "water"
unit_of_measurement: "%"