{"id":471,"date":"2018-03-13T06:33:38","date_gmt":"2018-03-12T21:33:38","guid":{"rendered":"http:\/\/www.ohmaker.net\/?p=471"},"modified":"2018-09-12T23:20:55","modified_gmt":"2018-09-12T14:20:55","slug":"alexa-lchika","status":"publish","type":"post","link":"http:\/\/www.ohmaker.net\/2018\/03\/13\/alexa-lchika\/","title":{"rendered":"\u300c\u30a2\u30ec\u30af\u30b5\u3001LED\u3064\u3051\u3066\u300d\u3067Raspberry Pi\u304b\u3089LED\u3092\u70b9\u706f\u3059\u308b"},"content":{"rendered":"
Alexa\u304b\u3089Raspberry Pi(\u4ee5\u4e0b\u30e9\u30ba\u30d1\u30a4)\u3092\u97f3\u58f0\u3067\u64cd\u4f5c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n
\u300c\u30a2\u30ec\u30af\u30b5\u3001LED\u3064\u3051\u3066\u300d\u3067\u3001LED\u3092\u70b9\u706f\u3092\u3055\u305b\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n
\u5b9f\u88c5\u65b9\u6cd5\u306f\u3044\u308d\u3044\u308d\u3042\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u304a\u624b\u8efd\u306aNode-RED\u3092\u6d3b\u7528\u3057\u307e\u3059\u3002 \u305d\u3057\u3066\u3001Alexa\u3068\u306e\u9023\u643a\u306b\u306f”Node-RED Alexa Home Skill Bridge”\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n Node-RED Alexa Home Skill Bridge \u69cb\u6210\u306f\u3056\u3063\u304f\u308a\u3053\u3093\u306a\u611f\u3058\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n “Alexa Home Skill Bridge”\u3067\u306f\u3001Node-RED\u306e\u30ce\u30fc\u30c9\u306e\u4ed6\u306b\u3001Alexa\u306e\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u30b9\u30ad\u30eb\u3084\u30a2\u30ab\u30a6\u30f3\u30c8\u8a8d\u8a3c\u3001MQTT\u3067\u9001\u4fe1\u3059\u308b\u6a5f\u80fd\u307e\u3067\u63d0\u4f9b\u3055\u308c\u3066\u304a\u308a\u3001\u3053\u308c\u3089\u3092\u5c0e\u5165\u3059\u308b\u3060\u3051\u3067\u7c21\u5358\u306bAlexa\u3068Node-RED\u3092\u9023\u643a\u3067\u304d\u307e\u3059\u3002<\/p>\n \u4ee5\u4e0b\u3001\u624b\u9806\u3067\u3059\u3002<\/p>\n \u307e\u305a\u3001\u4f55\u306f\u3068\u3082\u3042\u308cAlexa Home Skill Bridge\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n \u3053\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3067Alexa\u30b9\u30ad\u30eb\u3068Node-RED\u30ce\u30fc\u30c9\u3092\u7d10\u4ed8\u3051\u307e\u3059\u3002<\/p>\n \u3053\u3061\u3089<\/a>\u304b\u3089\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3084\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3001”register”\u3092\u62bc\u305b\u3070\u767b\u9332\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n \u3064\u3065\u3044\u3066\u3001Alexa Home Skill Bridge\u306b\u30c7\u30d0\u30a4\u30b9\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n \u753b\u9762\u4e0a\u306e”Devices”\u30bf\u30d6\u3092\u9078\u629e\u3057\u3001”Add Device”\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n \u30c7\u30d0\u30a4\u30b9\u306e\u60c5\u5831\u3092\u5165\u529b\u3059\u308b\u753b\u9762\u304c\u51fa\u308b\u306e\u3067\u3001\u6700\u4f4e\u9650\u4ee5\u4e0b\u3092\u5165\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n OK\u3092\u62bc\u305b\u3070\u767b\u9332\u5b8c\u4e86\u3067\u3059\u3002 \u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306eAlexa\u30a2\u30d7\u30ea\u304b\u3089\u3001”Node-RED”\u30b9\u30ad\u30eb\u3092\u6709\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n \u30a2\u30ab\u30a6\u30f3\u30c8\u767b\u9332\u3092\u6c42\u3081\u3089\u308c\u308b\u306e\u3067\u3001\u5148\u7a0b\u306eAlexa Home Skill Bridge\u306eID\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n \u7d9a\u3051\u3066\u30c7\u30d0\u30a4\u30b9\u306e\u691c\u51fa\u304c\u59cb\u307e\u308a\u3001\u767b\u9332\u6e08\u307f\u306e\u30c7\u30d0\u30a4\u30b9\uff08\u4f8b\u3060\u3068”\u30e9\u30ba\u30d1\u30a4”\uff09\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002<\/p>\n \u3053\u306e\u6642\u70b9\u3067\u3001\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u30b9\u30ad\u30eb\u304b\u3089\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n \uff08\u8868\u793a\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u307e\u3060\u5b9f\u614b\u306f\u4f55\u3082\u7121\u3044\u306e\u3067\u64cd\u4f5c\u3057\u3088\u3046\u3068\u3057\u3066\u3082\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\uff09<\/p>\n \u3082\u3057\u547c\u3073\u540d\u3092\u5909\u3048\u305f\u3044\u5834\u5408\u306f\u3001Alexa\u30a2\u30d7\u30ea\u304b\u3089\u81ea\u7531\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n \u307e\u305f\u3001\u30b9\u30de\u30fc\u30c8\u30db\u30fc\u30e0\u30b9\u30ad\u30eb\u306a\u306e\u3067\u3001”\u5b9a\u5f62\u30a2\u30af\u30b7\u30e7\u30f3”\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u69d8\u3005\u306a\u547c\u3073\u65b9\u306b\u5bfe\u5fdc\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n \u5b9a\u5f62\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u304c\u53c2\u8003\u306b\u306a\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u6700\u5f8c\u306b\u3001\u30e9\u30ba\u30d1\u30a4\u306eNode-RED\u306b\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n \u30e9\u30ba\u30d1\u30a4\u3067\u4ee5\u4e0b\u3092\u5b9f\u884c\u3057\u3066\u3001Alexa Home Skill Bridge\u30ce\u30fc\u30c9\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n <\/p>\n Alexa\u30ce\u30fc\u30c9\u306e\u51fa\u529b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n
\n\u30e9\u30ba\u30d1\u30a4\u306bNode-RED\u3092\u5c0e\u5165\u3059\u308b\u8a71\u306f\u3053\u3061\u3089<\/a><\/p>\n
\nhttps:\/\/alexa-node-red.bm.hardill.me.uk\/<\/a><\/p>\n\u69cb\u6210<\/h2>\n
<\/p>\n
<\/h2>\n
1. Alexa Home Skill Bridge\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u4f5c\u6210<\/h2>\n
<\/p>\n
<\/h2>\n
2. \u5236\u5fa1\u5bfe\u8c61\u3068\u306a\u308b\u30c7\u30d0\u30a4\u30b9\u3092\u767b\u9332<\/h2>\n
<\/p>\n
\n
\nAlexa Home Skill Bridge\u306eWeb\u30da\u30fc\u30b8\u4e0a\u3067\u306e\u8a2d\u5b9a\u306f\u4ee5\u4e0a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/h2>\n
3. Node-RED\u306eAlexa\u30b9\u30ad\u30eb\u306e\u6709\u52b9\u5316<\/h2>\n
<\/p>\n
\nAmazon Echo\u3068eRemote\u3067\u597d\u304d\u306a\u8a00\u8449\u3067\u5bb6\u96fb\u3092\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<\/h2>\n
4. Node-RED\u306bAlexa Home Skill Bridge\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0<\/h2>\n
cd ~\/.node-red
\nnpm install node-red-contrib-alexa-home-skill<\/code><\/p>\n<\/p>\n
\n\n
\n \u5165\u529b<\/th>\n msg.message<\/th>\n msg.payload<\/th>\n<\/tr>\n \n ON<\/td>\n TurnOnRequest<\/td>\n true<\/td>\n<\/tr>\n \n OFF<\/td>\n TurnOffRequest<\/td>\n false<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n