Today, we are proud to open sensor integration for beta testing. This new feature allows Hook to receive a registered RF signal (from a door/window sensor, for example) and call an event when required (for example, send a notification to the user’s App). The beauty of our implementation lies in its open ecosystem of supported RF devices and the wide variety of events to call in response.
We chose to implement Sensors via IFTTT because it opens an amazing ecosystem for Hook to work with. Some example use-cases are:
- Use the Etekcity remote to turn on Hue lights
- Get a notification when your RF doorbell rings
- Turn on a siren when the security sensor triggers
Our implementation is illustrated in this diagram
A RF sensor device sends a signal to Hook. If the sensor is added to the Hook App, Hook publishes it to IFTTT as a Webhook event. Th Webhook event triggers a user’s applet to call the associated service and action (like turning on/off a hue light).
IMPORTANT: We realize that the implementation relies on the rate-limited Webhook service. It could take up to a couple of seconds for the downstream event to trigger. The goal of this beta program is to gather use cases and overall implementation feedback. The latency will significantly reduce with a native channel which we are already working on.
Sounds good? Here are instructions to setup:
Hook App setup instructions
First, you need to update your Hook with the latest v6.4 Firmware and add Sensors as devices. To do this,
Login to the Web app (this feature is only available in Web App currently)
Go to Hooks page
- Append ?ilovesensors at the end of the URL and reload to unlock the beta firmware flash option
- You would now see upgrade to sensors button
Flash the v6.4 Firmware. Your Hook LED should cycle through a variety of colors before going back to breathing Cyan
- Now, go to Add Devices and pair a sensor like you Add a device. If the sensor is a compatible RF device, the LED on Hook would flash and you will see an ON action added to the Hook App. If you do not have a RF sensor to test with, you can register an ON or OFF button on the Etekcity remote as A sensor. TIP: Test how far Hook is able to register this device. The receive range is best for the Generation 2 hub.
- Now in the Web App, go to Sensors > Add Sensors page
Select a device and an associated action. These will act as the triggers.
- Go to IFTTT webhooks and copy your unique URL shown above
Edit the event name in blue rectangle to a name that represents the sensor. Avoid spaces in the name. Make a note of this as you will need it later. By the way, the event name is case-sensitive.
Give a friendly name to the sensor. This could be different or same as the name above and is for your reference only.
IFTTT Applet setup
- Now Create a new Applet in IFTTT
- For the IF Condition, Search and select Webhooks
Choose Receive a web request
- For the event name, use the same event name (case-sensitive) as in Step 10 (not the friendly name for sensor in #11). Create trigger.
- For the THAT condition, use any service you like (example Hue, notifications, WebHooks) to perform an action.
- Create action and Save the Applet. We recommend that you enable ‘Receive notifications when this Applet runs’ for the duration of beta testing to assist with debugging if the applet fails.
You are ready to test now.
If your Etekcity remote is already paired to existing outlets, you can order a new one from our webstore. If you use the existing remote as a sensor, the corresponding outlet will also trigger along with the selected IFTTT action (unless you want that).
That’s it! Let us know in comments how it goes.
Rahil and Team Hook