Commands

Note: the command format for IFTTT/Drive is in the section below.

Tasker, AutoMagic, Notifications (e.g. IFTTT) (See below for Google Sheets commands)

For direct commands to the AM Server you use the UDN to reference a device. You can find the UDN in AM Manager in the "intents" submenu for the device.

For IFTTT (or other android) notifications the DoCommands (below) are placed into the TEXT part of the notification and must be prefixed with $AM.

If the udn is in quotes the AM Server will try to match it with the friendly names of the existing devices. AM transforms the names to lower case and strips spaces to look for a match.

Use the intent: mpp.android.WemoManager.DoCommand with the STRING extra: "command" set to one of the commands below, or use an IFTTT Notification with the text "$AM {command}" (no brackets or quotes except for the device name).

      • ON udn
      • OFF udn
      • TOGGLE udn
      • REFRESH udn
      • EVENT eventName
        • see "OnEvents" triggers in Rules, allows multiple actions

If you have WemoLEDs (the app), dimmable devices, or WifiThermostat (target temperature device) you can use:

      • LEVEL udn nn [ttt]
        • level nn where nn is 0 to 100 (in %), ttt is optional time in seconds
      • UP udn
        • Dimmers: level up 10%
        • Thermostats: level up 0.5C or 1F (depending on mode)
      • DOWN udn
        • Dimmers: level down 10%
        • Thermostats: level down 0.5C or 1F (depending on mode)
      • RESTORE udn [ttt]
        • on to last value when off, where ttt is optional time in seconds
      • TEMPERATURE udn kkkk [ttt]
        • (bulbs that support temperature) bulb temperature, where kkkk is typically 2700 to 6500
        • ttt is optional, time in seconds
      • TEMPERATURE udn tt.t
        • Thermostat target temperature, where tt.t is the desired target temperature in F or C (depending on mode)
      • COLOR udn hue saturation [ttt]
        • (bulbs that support color)
        • hue is 0 to 360 (degrees on a color circle)
        • (for OSRAM bulbs via the Wemo Link, use the name of the color)
        • saturation is 0 to 100 (in %)
        • (for OSRAM bulbs via the Wemo Link, saturation is 0-10)
        • ttt is optional, time in seconds

Use the AutomationManager UI to find pleasing values for bulb temperature and color (they'll show on the sliders) to use in the commands.

Custom Sensors and Analogs can be updated externally (and used in rule triggers and conditions):

      • ON udn
      • OFF udn
      • VALUE udn ff.f (analogs only)
        • where ff.f is a float value

IFTTT/OnDrive Commands

For IFTTT put the commands into the IFTTT add row to Drive spreadsheet trigger where ||| is the column separator.The device friendly name can be used in place of the udn (or bulb id) if it's distinct - the first exact match will be found.

You can find (and copy) your device UDNs in the AutomationManager app - touch the device name to open the submenu, choose "Intents".

      • udn ||| on
      • udn ||| off
      • udn ||| toggle
      • eventName ||| do
        • see "OnEvents" triggers in Rules, allows multiple actions
      • udn ||| toggle

If you have WemoLEDs (the app), dimmable devices, or WifiThermostat (target temperature device) you can use:

      • udn ||| level ||| nn ||| ttt
        • level nn where nn is 0 to 100 (in %), ttt is optional time in seconds
      • udn ||| up
        • level up 10%
      • udn ||| down
        • level down 10%
      • udn ||| restore ||| ttt
        • on to last value when off, where ttt is optional time in seconds
      • udn ||| temperature ||| kkkk ||| ttt
        • (bulbs that support temperature)
          • bulb temperature, where kkkk is typically 2700 to 6500
          • ttt is optional, time in seconds
      • udn ||| temperature ||| tt.t
        • WifiThermostat target temperature, where tt.t is the desired target temperature in F or C (depending on WifiThermostat preferences)
      • udn ||| color ||| hue ||| saturation ||| ttt
        • (bulbs that support color)
        • hue is 0 to 360 (degrees on a color circle)
          • (for OSRAM bulbs via the Wemo Link, use the name of the color)
        • saturation is 0 to 100 (in %)
          • (for OSRAM bulbs via the Wemo Link, saturation is 0-10)
        • ttt is optional, time in seconds

Use the AutomationManager UI to find pleasing values for bulb temperature and color (they'll show on the sliders) to use in the commands.

Custom Sensors and Analogs can be updated externally to trigger rule actions:

      • udn ||| on
      • udn ||| off
      • udn ||| value ||| ff.f
        • where ff.f is a float value