I managed to solder as tiny as I could a Wemos D1 mini with its battery and battery shield, without forgetting the sensor, to fit into my mailbox
Everything works great, the info is sent via MQTT and after a trigger, the sensor keeps the trigger pin high for 5min30sec, so now as I don't want my battery to last for 15min, I want to use the deepsleep mode.
Actually, my rule is quite simple :
Code: Select all
On System#Wake do
If [Fuse#State]=1
deepsleep,300
EndIf
EndOn
So, my question : is there a way to do it a bit cleaner ? I mean, I think that when the system#wake is triggered, the ESP is already trying to connect to my Wi-Fi and the deepsleep interrupts it at the middle of the process. Is it possible to not power on the Wi-Fi module at boot (if the fuse is OK) and only via another rule (I receive a letter once per week so the Wi-Fi module only had to be powered on at this precise moment, not every 5min)
Thanks in advance!
Waryard