Examples

How do I send a notice to my personal phone when an event occurs on the AM Server?

SendNotification (AM Remote and phone data connection required)

SendGMAIL (phone data connection required).

IFTTT - use the IftttMaker event and have the event notify your phone. You will receive the notification in your phone and you can use Tasker or Automagic to act on it (phone data connection required).

SMS (server must be on an activated phone). You can use Tasker or Automagic to act on the SMS. Use the MppSMSer beta (google does not allow apps that send SMS to be published on google play).

How do I use rules to control a light with a motion detector?

Trigger

WhenState motion changes to [on,off] (interruptible)

Condition

Active times: sunset to sunrise // optional

Action

SetOn [light] restore after 10m

Any motion (on or off) will turn the light on with a restore scheduled for 10 minutes later. Any further motion will restart the timer.

How do I override a motion rule if I need the light to stay on occasionally?

Select "Motion Rule" when you create a new rule. Turning the light on manually before activating the motion device (or, if already on by motion cycle it off then on) will keep the light on indefinitely.

How do I control a 3-way switch with two smart single pole switches?

It's best to use the light switches as parallel controls of the light - if either is on, the light is on, if both are off the light turns off. Use the black/white wires to get neutral to both switches. Use the 4th wire (usually red) as a runner to get power to the load.

The "Synchronize" rule can be used to have the two switches follow each other - turn one on or off and the other will follow. Both switches need to be off for the power to be removed.

Check your local electrical code!

How do I reboot my router if the internet is offline

Plug the router into wemo socket, then use:

  • Rule 1

    • Trigger

      • Periodic every 60 minutes

    • Action

      • SendHTTP GET to http://www.google.com onFailure [rebootRouter]

  • Rule 2

    • OnEvent [rebootRouter]

    • Action

      • MomentaryOff RouterWemo 20s

Note that Wifi must be active and the wemo connected to trigger the rule. Wifi can be lost when the rule triggers and the router will still be powered back on.

Note that the router will remain OFF after a power outage as the wemo will remain off. The TP Link will not work as it needs wifi to be switched on.

The ESP8266 is a much better choice (see below).

How do I reboot my router if my Wifi is down?

How do I reboot my router if my Wifi is down?

Use an ESP8266 to power the router: ESP8266 and use this setup: Routers/Modems. This is the best choice for managing a router.

How do I take action if a door (e.g. garage door) is left open? Use a Maker sensor, the DscServer, or an ESP8266 sensor.

    • Triggers

      • WhenDevice GarageDoor is ON interruptible

      • OnEvent garageDoorOpen

    • Wait 15m

    • Condition

      • DeviceState GarageDoor is ON

    • Actions

      • SendTTS "Garage Door is Open"

      • SendEvents [garageDoorOpen]

How do I get an android server to announce a door is closed only after being opened (to avoid messages when the tablet restarts or the sensor goes offline and is restored)

    • Rule 1

      • Trigger

        • GarageDoorMaker TRIGGERED (indicating it's open)

      • Action

        • SetFlags [GarageDoorOpen] ON

    • Rule 2

      • Trigger

        • GarageDoorMaker UNTRIGGERED (indicating it's been closed)

      • WHEN

        • FlagsState [GarageDoorOpen] ON

      • Actions

        • SendTTS "Garage Door Closed"

        • SetFlags [GarageDoorOpen] OFF

Turn something on periodically during certain times of the day

Turn something on periodically during certain times of the day:

    • Trigger

      • Periodic - trigger every X minutes

    • When

      • Active Time 6am to 2am

    • Action

      • SetOn WEMO restore after Y minutes

What if it needs to be at certain times?

    • Trigger

      • OnSchedule at 6am daily

      • WhenDevice WEMO turns off

    • When

      • Active Time 6am to 2am

    • Wait 60 minutes

    • Action

      • SetOn WEMO restore after Y minutes

Make my home look occupied when I'm away

Use the "away" rules to setup times for internal lights to come on and off that reflect your usual patterns at home, e.g. bathroom, living, and bedroom lights, TVs, stereos, etc.

Use the "random" setting on the "WAIT" part of the rule for jitter in outside (perimeter) lighting to turn them off or on at around the usual times or relative to sunset or sunrise.

Other examples

Turn a light on just before sunset or off just after at sunrise:

AtSunset offset -15m turn WEMO ON

AtSunrise offset +15m turn WEMO OFF

Turn a device back off a few minutes after turning it on:

WhenDevice device changes to ON

Wait 3m

SetDevice device off

Send an email or SMS if the garage door is left open:

SendGMAIL MAKER triggered delay 15m interruptible to...

Trigger a wemo from an external camera (via an HTTP post on motion)

OnEvent MyCamera set WEMO ON

Trigger a wemo from multiple cameras and motion. Turn off 15m after last motion event:

OnEvent MyCamera1 | MyCamera2 | MOTION ON turn WEMO ON

Timer MyCamera1 | MyCamera2 | WEMO turns ON wait 15m interruptible then turn WEMO OFF

Prevent a WEMO turning off from tirggering a camera (which turns it back on...)

Supression when WEMO turns OFF suppress MyCamera1 for 10s

Control multiple wemos from a single wemo using a double click (Belkin has not exposed the long click action)

WhenClicked WEMO1 turn WEMO2 ON, WEMO3 ON

Enable or Disable rules (say when a wemo goes offline in a pair)

WhenState WEMO2 | WEMO1 is OFFLINE DISABLE rules tagged "paired"

WhenState WEMO2 | WEMO1 is OFF | ON ENABLE rules tagged "paired"

Restart a router (the one providing Wemo wifi):

OnSchedule at 3:00AM set WEMO momentary OFF for 3s

It's a bit risky as a power outage will leave the wemo off... best if you can have the wemo doing this from a separate router, then you can use the "keep on" rule below.

Keep a wemo always ON, even after power outages:

WhenDevice INSIGHT switches OFF turn INSIGHT ON

Send an SMS 5m after an insight enters standby:

SendSMS when INSIGHT switches to STANDBY after 5m (interruptible)

Take an action as long as a state is present

WhenDevice Maker is TRIGGERED wait 15 then set Maker to CHECK

SendGmail when Maker is TRIGGERED to abc@def about Maker

When the maker is triggered, this rule set send an email, and will check the maker every 15 minutes and send another email each time the maker is found to still be triggered.