The big thing that I discovered, other than butting my head against how to write actions, is that it’s a little tricky to have the state of your ESPHome device change while the device is sleeping. Thus, I took a SPDT switch, connected one side to ground and the other side to 3.3v, and then connected that to pin #5: If the switch is on, deep sleep is pervented. My first thought was that I’d like to just have a switch. The manual describes how to use MQTT to accomplish this goal Deep sleep method 1: Controlling deep-sleep by a switch Deep sleep method 0: MQTT as per the docs If you want deep sleep on the ESP8266, you need to connect a cable from GPIO16 to the RST pin. A quick note about deep sleep on ESP8266 and ESP32 devices ![]() I ended up grabbing a bunch of help from oskar & ssieb from the ESPHome discord to figure this out. The only documentation is for how to use MQTT to disable deep sleep, so I decided to explore how to make this work. You can’t trigger an OTA update while the device is in deep sleep. ![]() If you get your ESP into deep sleep, pretty much everything is shut down and stopped and so the power usage is dramatically reduced. It’s great to be sitting at my desktop pushing updates to the actual device without juggling cables and stuff. Less than a Pi, but still enough power to matter if you are using solar power.įurthermore, I think that ESPHome’s over-the-air software update system is amazing. ![]() Thing is, either of those devices eats up quite a bit of current. I’ve been wanting to do some stuff with solar power and low energy and ESPHome.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |