-
Hello, I have an ESP8266 D1 mini with ESPHome and Homeassistant. I'm trying a lot of things right now, but I'm not getting anywhere. Does anyone have any help for me? I'm sure it's simple, but I think I'm just getting lost. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved. I connected the display's power supply to a pin. If I press a button that sets the "RST pin" to ground, the ESP is taken out of DeepSleep and the display shows the data from the scale. Until DeepSleep arrives after the specified time. Here my code. `captive_portal: Deep Sleepdeep_sleep: dashboard_import: To have a "next url" for improv serialweb_server: sensor:
Displayi2c: font:
display:
output:
|
Beta Was this translation helpful? Give feedback.
Solved.
I connected the display's power supply to a pin.
I set the pin as "output" and "inverted: true" so that the pin is always provided with voltage.
If the ESP now goes into “DeepSleep”, the pin becomes de-energized and the display is dark/off.
If I press a button that sets the "RST pin" to ground, the ESP is taken out of DeepSleep and the display shows the data from the scale. Until DeepSleep arrives after the specified time.
Here my code.
`captive_portal:
Deep Sleep
deep_sleep:
run_duration: 60s
dashboard_import:
package_import_url: github://esphome/example-configs/esphome-web/esp8266.yaml@main
import_full_config: true
To have a "next url" for improv serial
web_server:
sensor: