@exiledyorkie wrote:
Hello,
I’ve just set up my first node using a Wemos D1 Mini and a DHT22, as a test. All worked perfectly. Then I added a static IP, as I was having issues and now, after some reading and repeating steps, that all seems fine. My next step was to install ‘deep sleep’ as I plan to run this node on 18650 batteries but it just does not work.
I’ve played around with the interval time of the DHT and I’ve changed the run and sleep durations but nothing works. I can see the Wemos is reconnecting to HA but no values are been transferred over. The dashboard remains blank, like it is never seeing a value. If I try and upload any code, when it has reconnected to HA, it can’t connect to the IP and throws an error out. If I reconnect the Wemos and flash with a cable, removing the sleep mode, OA updates can then be resumed.
I’ve read on other threads that the api of HA can take 60 seconds to reconnect/configure so I extended the awake time but nothing. Ideally I want the Wemos to sleep for 15/20 minutes and maybe wake up for 20 seconds, a minute at the longest. Reading online, this may not be possible.
Any input would be greatly appreciated
esphome: name: green_house platform: ESP8266 board: d1_mini wifi: ssid: "" password: "" # Optional manual IP manual_ip: # Set this to the IP of the ESP static_ip: X.X.X.X # Set this to the IP address of the router. Often ends with .1 gateway: X.X.X.X # The subnet of the network. 255.255.255.0 works for most home networks. subnet: X.X.X.X # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Green House Fallback Hotspot" password: "" captive_portal: # Enable logging logger: # Enable Home Assistant API api: ota: # Example configuration entry sensor: - platform: dht pin: D3 model: DHT22 temperature: name: "Green House Temperature" humidity: name: "Green House Humidity" update_interval: 10s deep_sleep: run_duration: 120s sleep_duration: 15min
Posts: 1
Participants: 1