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

11
IFTTT, Alexa, Google Home & Watson IoT Platform Markus van Kempen Executive Architect & Venture Capitalist E: [email protected] T: @markusvankempen

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

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

IFTTT, Alexa, Google Home & Watson IoT Platform

Markus van Kempen Executive Architect & Venture Capitalist E: [email protected] T: @markusvankempen

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

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

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

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

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

4

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

IFTTT – Maker WebHook

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

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

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

6

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

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

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

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

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

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

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

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

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

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