Can I get an alert when my iPhone 5S is unplugged?
You can reach that with the shortcut-app by creating an automation:

Open Shortcut-App and create a new Automation (click +)
Choose &quot;Create Personal Automation&quot;
Scroll the page down and select &quot;Charger&quot;
Choose &quot;Is Disconnected&quot; and click &quot;Next&quot;



Click button &quot;+ Add Action&quot;
Select &quot;Show Notification&quot;, findable through the search field
Write the show notification as example &quot;Is Disconnected from Power&quot;, then &quot;Next&quot;



Deselect &quot;Ask Before Running&quot; if this shortcut should be triggered automatically
Click &quot;Done&quot; and your shortcut is finished and executable