Developers · Siri & Apple Shortcuts

Control Your Logmor Outlet with Siri and Apple Shortcuts

"Hey Siri, reboot the cabin router."

Apple's Shortcuts app can call the Logmor API directly. In about 10 minutes you can control an outlet by voice, from your home screen, Apple Watch or CarPlay, and run it automatically when you leave home or at a set time. No coding and no extra app.

  • Siri
  • Shortcuts
  • Apple Watch & CarPlay
  • Works without Wi-Fi at the site

$169.99 device · First 14 days of service free · Then $15/month · No contract

What You Need

Your phone just needs any internet connection (Wi-Fi or cellular). The outlet uses its own 4G LTE, so this works even when the internet at the property is down.

Build a "Reboot Cabin Router" Shortcut

  1. Open Shortcuts, tap +, then Add Action and choose Get Contents of URL.
  2. Set the URL to https://api.particle.io/v1/devices/YOUR_DEVICE_ID/control, using your Device ID.
  3. Tap the arrow next to the URL to show more options:
    • Method: POST
    • Headers: add Authorization with the value Bearer YOUR_TOKEN (the word Bearer, a space, then your token)
    • Request Body: JSON. Add a Text field with key arg and value PowerCycle
  4. Add the action Get Dictionary Value and set it to get the value for key return_value.
  5. Add If: if Dictionary Value is 3, Show Notification "Router restarting"; otherwise, Show Notification "Restart not started". The note under the table explains why it might not start.
  6. Name the shortcut Reboot cabin router. The name is what you say to Siri.

Now say "Hey Siri, reboot cabin router." The outlet turns off for 30 seconds, then back on.

On, Off and Status

Duplicate the shortcut and change only the arg value to make the others:

ShortcutMethodURL ends inBody argSuccess reply
Turn onPOST/control11
Turn offPOST/control00
Power cycleOff 30 s, then onPOST/controlPowerCycle3
StatusGET/DataNoneSee below

Got -1? The command was rejected. For a power cycle, that usually means the outlet is off, a cycle is already running, or it's within 60 seconds of the last one.

Status shortcut

Use the same Authorization header, then chain these actions:

  1. Get Contents of URLGET …/YOUR_DEVICE_ID/Data
  2. Get Dictionary Valuekey result
  3. Get Dictionary from Inputturns the text into data
  4. Get Dictionary Valuekey RelayStatus

RelayStatus is 1 when the outlet is on and 0 when it's off. The same data also includes CellStrength and UpTime.

Run It Automatically

In Shortcuts, open the Automation tab, tap +, pick a trigger, choose Run Immediately so it doesn't ask first, then select your shortcut.

TriggerExample
Leave a locationWhen you leave home on Friday afternoon, turn on the cabin heat
Arrive at a locationWhen you arrive at the cabin, turn off the block heater
Time of dayWeekdays at 5:30 a.m., turn on the truck's block heater
AlarmWhen your wake-up alarm is stopped, start the heater

Fixed times are best set in the outlet itself. Schedule rules in the Device Portal run on the outlet even if your phone is off or the signal drops. Use Shortcuts automations for things tied to you, like where you are or when you wake up. To reboot automatically when the internet goes down, see automatic modem reboots.

More Ways to Run It

Keep Your Token Safe

Your access token works like a password for your outlets. Don't share a shortcut with the token inside it, and don't post screenshots that show it. If you share a shortcut with family, have them add their own token.

FAQ

Do I need Wi-Fi at the property?

No. The outlet has its own 4G LTE connection. Only your phone needs internet, over Wi-Fi or cellular, wherever you are.

Is there a Logmor iPhone app?

The Device Portal works as a home-screen app. See Logmor on iPhone and Android. Shortcuts adds Siri and automations on top.

Can I control several outlets?

Yes. Make one shortcut per outlet, each with its own Device ID, and give them names you'll say naturally, like "turn on the barn heater."

What about Android?

Apps like Tasker or HTTP Shortcuts can send the same requests. Use the method, URL, header and arg values from the table above.

Are there limits?

There are no per-call fees. Keep it under about 100 requests per hour per account, and allow 60 seconds between power cycles.