PowerDetector

PowerDetector

PowerDetector is an application that can be used to monitor the power connected to the device. Basically just plug the device (iPhone) into a charger and plug that charger into a wall outlet. When the power goes off/on the app will send notifications to the email addresses that have been configured in the app.

In order for the app to work correctly Siri Automations must be configured to connect the power events to the application. Basically the Siri Automation calls into the app each time the power goes on or off. Additionally Siri Automations can be used to run a recurring notification (keep alive) so that the app sends a message once a day with the current power state. The app does not need to be currently running on the device for it to work because Siri will automatically start the app when the power state changes and the emails will be sent.


Privacy Policy

The privacy policy can be found here.

Settings

There are a number of settings that must be set in order for the app to send messages.

Email Account Setup

In order to send email notifications an email account is required with an email provider such as gmail. You need to provide the email address and the app password for the account and the port number in the settings for this app. The password is somewhat more involved because you need to provide an “App Password” rather than the actual account password. In the case of gmail, you can ask gmail to generate such a password, which is generally approximately a 16 character random string. Use this password rather then the normal account password and gmail will allow this app to send email through it to the destinations specified above. It is advisable to create a new separate email account with gmail for this app to use rather than use an existing gmail account.

In order to create an app password, search on google with a search string similar to the following “gmail sign in with app passwords”. You can find up to date instructions for creating the app password from the search results.

Keep Alive Settings

Keep Alives: This app has the option to send a periodic message to the email destinations, reporting the current power state. Typically you might configure this to send once a day or once a week.

Testing

On the previous view before clicking on the Keep Alive view, there is a “Send Test Msg” button that makes it easy to check if the email server and destinations are configured correctly. Simply click this button and a test email will be sent to the configured emails. Ensure that the top switch “Enable Notifications” is on. It can take several seconds for the email to get through. You can check in the sent email folder on the gmail account configured for the Sending Email Account if you are having problems. Any messages successfully sent should show up in that folder.

Siri Automation Setup

Three Siri automations are required to complete the app setup. To enable these settings run the “ShortCuts” app that comes with iOS.

Keep Alive

If you want to be informed periodically (once per day for example) that the power is still active at your location, create an additional automation shortcut:

You should have these three automations when you are done: