-
Hello, I am playing around with deep sleep but can't get it to work. I have an H2 board and a C6 board. Esphome does not support deep sleep on the H2 so I am using the C6. I have a naive config with just a temperature sensor and a fake pressure sensor that increments on button press. The code below (without deep sleep) works great! If I add a basic deep sleep statement with 1s on time and 10s off time, the device gets stuck at boot. I will need to hold BOOT and reprogram it to get it back to life. Anyone has experience with deep sleep and zigbee? My final application only needs to send one sensor value every 10 minutes or so and I'd like tp spend the time inbetween sleeping to be maybe able to run from battery baal86
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I did not test deepsleep (and I have only a H2, so someone needs to add a PR for adding this first). Anyway, deepsleep is not really ideal for zigbee because it needs to connect to the network each time which takes much longer than 1s, I guess. Lightsleep would be much better, but is not supported by esphome. |
Beta Was this translation helpful? Give feedback.
I did not test deepsleep (and I have only a H2, so someone needs to add a PR for adding this first).
I would expect it to just work, but maybe I need to block deepsleep during zigbee setup.
Anyway, deepsleep is not really ideal for zigbee because it needs to connect to the network each time which takes much longer than 1s, I guess. Lightsleep would be much better, but is not supported by esphome.
Try to set on time to 1 minute and if that works try to reduce it.