What You Need
- An iPhone, iPad or Mac with the Shortcuts app (built in).
- A Logmor outlet that's activated in the Device Portal.
- Your outlet's Device ID, shown in the portal and on the label on the back of the outlet.
- An access token: in the portal, open Cloud API and tap Generate Token.
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
- Open Shortcuts, tap +, then Add Action and choose Get Contents of URL.
- Set the URL to
https://api.particle.io/v1/devices/YOUR_DEVICE_ID/control, using your Device ID. - Tap the arrow next to the URL to show more options:
- Method: POST
- Headers: add
Authorizationwith the valueBearer YOUR_TOKEN(the word Bearer, a space, then your token) - Request Body: JSON. Add a Text field with key
argand valuePowerCycle
- Add the action Get Dictionary Value and set it to get the value for key
return_value. - 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. - 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:
| Shortcut | Method | URL ends in | Body arg | Success reply |
|---|---|---|---|---|
| Turn on | POST | /control | 1 | 1 |
| Turn off | POST | /control | 0 | 0 |
| Power cycleOff 30 s, then on | POST | /control | PowerCycle | 3 |
| Status | GET | /Data | None | See 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:
- Get Contents of URLGET
…/YOUR_DEVICE_ID/Data - Get Dictionary Valuekey
result - Get Dictionary from Inputturns the text into data
- 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.
| Trigger | Example |
|---|---|
| Leave a location | When you leave home on Friday afternoon, turn on the cabin heat |
| Arrive at a location | When you arrive at the cabin, turn off the block heater |
| Time of day | Weekdays at 5:30 a.m., turn on the truck's block heater |
| Alarm | When 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
- Home screen: in Shortcuts, long-press the shortcut, then Share and Add to Home Screen.
- Widget: add the Shortcuts widget for one-tap buttons.
- Apple Watch and CarPlay: shortcuts sync to your watch and work with Siri while driving.
- Action Button on recent iPhones: set it to run a shortcut.
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.