{"id":578,"date":"2019-05-24T16:48:36","date_gmt":"2019-05-24T08:48:36","guid":{"rendered":"https:\/\/www.sumju.net\/?p=578"},"modified":"2019-11-06T12:15:02","modified_gmt":"2019-11-06T04:15:02","slug":"%e6%8e%a7%e5%ae%a2%e6%99%ba%e8%83%bd%e6%8f%92%e5%ba%a7konkeio-%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%ef%bc%8c%e5%b1%80%e5%9f%9f%e7%bd%91%e5%b0%8fk%e6%8f%92%e5%ba%a7%e6%8e%a7%e5%88%b6%e3%80%82","status":"publish","type":"post","link":"https:\/\/sumju.net\/?p=578","title":{"rendered":"\u63a7\u5ba2\u667a\u80fd\u63d2\u5ea7konkeIO \u4f7f\u7528\u65b9\u6cd5\uff0c\u5c40\u57df\u7f51\u5c0fK\u63d2\u5ea7\u63a7\u5236\u3002"},"content":{"rendered":"<p>\u63a7\u5ba2IO\u4e0b\u8f7d\u5730\u5740\uff1a<br \/>\nhttps:\/\/github.com\/YinHangCode\/ikonkeIO<\/p>\n<p><a href=\"https:\/\/www.sumju.net\/wp-content\/uploads\/2019\/05\/ikonkeIO-master.zip\">ikonkeIO-master<\/a><\/p>\n<p>\u63a7\u5ba2IO\u811a\u672c\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<p>Then, after running the discovery command: sh ikonkeIO.sh &#8211;discover 192.168.1.255 (where the IP address would be your broadcast IP address), it will find all ikonke outlets available on your network, example output:<\/p>\n<p>broadcast address: 192.168.1.255, scan ikonke device&#8230;. <\/p>\n<p>type: mini_w<br \/>\nip: 192.168.1.XXX<br \/>\nmac: 11-22-33-44-55-66<br \/>\npassword: 12345678<\/p>\n<p>type: mini_w<br \/>\nip: 192.168.1.YYY<br \/>\nmac: aa-bb-cc-dd-ee-ff<br \/>\npassword: 87654321<\/p>\n<p>\u63a7\u5ba2IO\u63a7\u5236\u548c\u53d6\u5f97\u63d2\u5ea7\u72b6\u6001\u547d\u4ee4\uff1a<br \/>\nsh ikonkeIO.sh -C mini_w 192.168.1.XXX 11-22-33-44-55-66 &#8216;12345678&#8217; setRelay open<br \/>\nThe above command will turn the relay switch to ON and the command output would say success<\/p>\n<p>sh ikonkeIO.sh -C mini_w 192.168.1.XXX 11-22-33-44-55-66 &#8216;12345678&#8217; setRelay close<br \/>\nThe above command will turn the relay switch to OFF and the command output would say success<\/p>\n<p>sh ikonkeIO.sh -C mini_w 192.168.1.XXX 11-22-33-44-55-66 &#8216;12345678&#8217; getRelay<br \/>\nThe above command will ask the switch for its current status. The command output would say either open (ON) or close (OFF)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a7\u5ba2IO\u4e0b\u8f7d\u5730\u5740\uff1a https:\/\/github.com\/YinHangCode\/ikonkeIO &hellip; <a href=\"https:\/\/sumju.net\/?p=578\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u63a7\u5ba2\u667a\u80fd\u63d2\u5ea7konkeIO \u4f7f\u7528\u65b9\u6cd5\uff0c\u5c40\u57df\u7f51\u5c0fK\u63d2\u5ea7\u63a7\u5236\u3002<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[37,38,36],"class_list":{"0":"post-578","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"tag-home-assistant","8":"tag-smarthome","9":"tag-36","10":"h-entry","12":"h-as-article"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=578"}],"version-history":[{"count":3,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/578\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/578\/revisions\/582"}],"wp:attachment":[{"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}