I was on holiday over the weekend and the unit works like a charm, I was notified of all activities detected by the PIR set above my main door.
With wifi_station_set_auto_connect(TRUE) the constant tries to connect to a missing AP or wrong password will run the batteries flat in no time.
Default retries is now set to 4 in which after that the ESP8266 will go in deep sleep to conserve power.