HomeKitとNode.jsを使ってSiriでコントロールするなにか

35
Homekit Node.js Siri Kyoto.js vol. 12 2017.1.21

Transcript of HomeKitとNode.jsを使ってSiriでコントロールするなにか

Homekit Node.jsSiri

Kyoto.js vol. 12 2017.1.21

• (Twitter@kamiyam)

• Engineer

Siri

: 9 IT(?) : 9

Siri

Siri ?

HomeKit

HomeKit

HomeKit

WWDC 2014 iOS

WWDC 2016 iOS10 Home

Siri HomeKit

Ref. http://www.apple.com/jp/shop/accessories/all-accessories/homekit

koogeek

HomeKit ?

Homebridge

Homebridge

HomebridgeHomebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API. It supports Plugins, which are community-contributed modules that provide a basic bridge from HomeKit to various 3rd-party APIs provided by manufacturers of "smart home" devices.

Ref. https://github.com/nfarina/homebridge

# npm install -g homebridge# homebridge

# npm install -g homebridge-dummy

Ref. https://github.com/nfarina/homebridge-dummy

# #editor ~/.homebridge/config.json{

"bridge": {

"name": " ",

"username": "CC:22:3D:E3:CE:AA",

"port": 51825,

"pin": "031-45-154"

},

"description": “dummy switch",

"accessories": [

{

"accessory": "DummySwitch",

"name": " "

}

]

}

Ref. http://senyoltw.hatenablog.jp/entry/2016/02/22/080000

Homebridge plugin

• homebridge-irkithttps://github.com/senyoltw/homebridge-irkit

• homebridge-chamberlainhttps://github.com/caseywebdev/homebridge-chamberlain

• Slackhttps://homebridgeteam.slack.com/messages/random

IR kit

CHAMBERLAIN

t

OK

…?

Apple TV ?

Apple ID

Ref. https://support.apple.com/ja-jp/HT207057

※ WifiApple TV …?