PowerDetector

PowerDetector

App Icon
App Icon

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.

Power On
Power On
Power Off
Power Off

In order for the app to work correctly Siri Automations must be configured to connect 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.

Although the app is specifically designed to monitor power to the iphone (based on Siri Automations), it could be used to monitor anything that you can write an automation to detect. The Siri automation could be configured to detect some other state and then call the Power On or Power Off shortcuts in the app, and the text for those shortcuts could be set accordingly to reflect this new event occuring.


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. The PowerDetector app sends to this email account through SMTP, and then that account sends emails to the configured addresses provided above.

You need to enter the email address and the app password for this account and the port number in the settings for this app. The password is somewhat more involved because it is 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 about 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. Gmail provides this password as a group of 4 sets of 4 characters with spaces between each set. Do not enter the spaces into the password field for this app since the spaces are not part of the password. They are just included to improve readability. 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. You need to setup 2-Step verification on the gmail account to be able to generate the app password. You may need to log into and out of the account a couple of times to actually get it to work correctly. The app password creation screen is under “Manage Your Google Account/Security/2-Step Verification/App Passwords”. When you create an app password you can copy the value, but after that point you can’t read previously created app passwords, you can only delete them and create new ones.

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.

 

Siri Shortcuts Repair

Three Siri shortcuts should be installed when the app is installed (as seen in the image above). If these shortcuts are missing or if they are changed in some way, they can easily be recreated using the following steps.

Keep Alives

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: