How to set the phone to wake you up as soon as electricity appears in the house.

TL;DR


How to wake up at night to do something as soon as the electricity comes on.
An idea came to mind (working and tested).

Because it is uncomfortable to fall asleep with the light on, and when the light is turned on in the middle of the night, it will not wake me up at all.
And you have to work while you have it, but there is a way to wake up properly.

Solution for Android.

  1. You download (playmarket banned them) Automagic_1_38_0.apk and install, run, and give the program all (reasonable) permissions, when it asks for something.
    Don’t worry, and allow it.

  2. The song is downloaded according to your taste, like путін - хуйло
    Here is a concise and original one with a length of 0:34 seconds. Checked.
    putin khuilo

  3. The behavior model of the application is as follows:
    • Event (trigger)
    • Conditions (restrictions)
    • Action (what to do)
  4. How I did it, conditions and technical rationale:
    • the electricity turns on, suddenly! And you are sleeping!!
    • both the router and the Internet are automatically turned on
      (in my case)
    • the phone itself sees that there is a Wi-Fi connection and connects to it
  5. At this stage, the trigger on the phone works - yes, there is Internet, which means there is electricity, the trigger clicks.

  6. It is necessary to register triggers in this program and how to react to them.

  7. In the picture: Automagic Schema
    • Wi-Fi, which points to respond to
    • we wait 20 seconds (for example, when Wi-Fi is already available, and the provider has not yet working)
    • “putin - khuilo”, this is what we need, a cheerful song will play - see the screenshots, how it is set up.

Voila! And before, people did not sleep at night because of this at all.