I’m working on building a car tracker with one of my electrons and would like to identify when the cars ignition is turned on. I’m going to use a 12v feed from the car thats only live when the ignition is on and an inline 12v -> USB adaptor, and I can check the status of USB power via pmic. This all works while the electron isn’t awake. My question is, is there a way to do the same thing while the electron is sleeping? Ideally I would like it to send a message as soon as the ignition is turned on / usb power is present but I need to put it to sleep (not deep sleep) when the ignition is off as the car does not get used regularly and I want to save battery.
Would appreciate any ideas.