I am trying to write a MacroDroid (or Tasker) macro that alerts me when the power goes off when I am sleeping.
At night I put my phone on a charging pad. If the charging pad loses power (Power Disconnected) I NEED the macro to alert me (wake me up) by speaking the text, "ATTENTION... Power has been lost." I will then start my generator to keep the food in my refrigerator from spoiling, etc, etc.
I am also trying to avoid false positive alerts -- like when I take the phone off the charging pad in the morning. I think I need to add a Constraint to the Power Disconnected trigger that ensures the phone is still motionless (still on the charging pad and not moving). To summarize, if the phone's power becomes disconnected -AND- the phone remains motionless THEN, and ONLY THEN, speak the alert.
There is a MacroDroid trigger for "Activity Recognition" that can determine if the phone is moving or still -BUT- there is not an Action or a Constraint.
Help!
At night I put my phone on a charging pad. If the charging pad loses power (Power Disconnected) I NEED the macro to alert me (wake me up) by speaking the text, "ATTENTION... Power has been lost." I will then start my generator to keep the food in my refrigerator from spoiling, etc, etc.
I am also trying to avoid false positive alerts -- like when I take the phone off the charging pad in the morning. I think I need to add a Constraint to the Power Disconnected trigger that ensures the phone is still motionless (still on the charging pad and not moving). To summarize, if the phone's power becomes disconnected -AND- the phone remains motionless THEN, and ONLY THEN, speak the alert.
There is a MacroDroid trigger for "Activity Recognition" that can determine if the phone is moving or still -BUT- there is not an Action or a Constraint.
Help!