Using Alexa, IFTTT and Watson IoT Platform to control ble devices

Preview:

Citation preview

IFTTT, Alexa, Google Home & Watson IoT Platform

Markus van Kempen Executive Architect & Venture Capitalist E: mvk@ca.ibm.com T: @markusvankempen

2

Objective: How to use WIoTP together with Alexa and/or Google Home

BLE

Bluemix and WIoTP

PI as Gateway

WIFI Publish Events

Received Commands

IFTTT

Alexa

Google Home

PlayBulb Candle

3

•  Bluemix + WIoTP •  Device connect to WIoTP like PlayBlub

•  https://developer.ibm.com/recipes/tutorials/playbulb-candle-watson-iot-platform-using-watson-apis-and-twitter/

•  Node-RED e.g IoT starter app •  IFTTT account •  Amazon Account •  Echo or Alexa or Google Home

Ingredients

4

•  IFTTT offers WebHook which allows you to send/receive http request. •  https://ifttt.com/maker

IFTTT – Maker WebHook

5

Here the information's flow | #1

Raise Event Action/ post to url

Alexa trigger set candle red your.app.mybluemix.net/ifttt

{ ts: " March 6, 2017 at 03:42PM ", color: "red", cmd: "setcolor" }

•  Communication command for playbulb https://github.com/Phhere/Playbulb

6

Setup Alexa IFTTT up with the Maker Services to send (post) http requests to Node-RED

7

Here the information's flow | #2

Raise Event Action/ post to url

Alexa trigger set candle red your.app.mybluemix.net/ifttt { ts: " March 6, 2017 at

03:42PM ", color: "red", cmd: "setcolor" }

MQTT trigger ble

8

The other way around Note: There is delay like 5-40 minutes

Post to Maker

https://maker.ifttt.com/trigger/nremail/with/key/youkey

Action/ post to url Send Email,SMS, Trigger WeMO

9

Markus van Kempen Executive Architect & Venture Capitalist IBM Corporate Strategy Innovating with People and Technology email: mvk@ ca.ibm.com Twitter: @markusvankempen HashtagJ: #MVK

10

•  Communication command for playbulb •  https://github.com/Phhere/Playbulb

•  Pi / PlayBulb node.js code and Node-red flows •  https://github.com/markusvankempen/playbulb

•  Recipe on IBM DeveloperWorks •  PlayBlub

–  https://developer.ibm.com/recipes/tutorials/playbulb-candle-watson-iot-platform-using-watson-apis-and-twitter/ •  Alexa and WIoTP

•  Node-RED flow •  https://raw.githubusercontent.com/markusvankempen/playbulb/master/node-red-flows/alexa.flow

•  Shopping list •  https://www.amazon.com/gp/registry/wishlist/1870QQ55J0VTO/ref=nav_wishlist_lists_2?

cm_mc_uid=30806442456714843264946&cm_mc_sid_50200000=1484603129

References

Recommended