As the movement detector is not good enough for my needs, I was thinking of using probably the oldest “sensor” to detect door opening: switching the RuuviTag power on or off. This has the good side that I can use the Ruuvi Station app (and firmware) as such. There is already a trigger in Ruuvi Station for detecting the signal strenght (RSSI). When the power is off, RSSI should be the lowest value (-105?), right?
So supposedly not SW changes , but to switch the power off I need to do some soldering. The first idea is to solder a wire to the battery (!) directly and another wire to the metal slip that is on the top of battery. I can reinstall the plastic piece between the battery and the slip to prevent the contact that way. Then just install the wires to the door so that when the door is closed the wires are connected to each other, and when the door is opened the connection is broken and RuuviTag do not get the power any more.
What do you think? Do you spot any problems?
- I am sure there is a better solder points to use
- Is there a risk of frying the MCU etc. by switching the power on and off this way?