{"id":271,"date":"2022-04-29T09:28:24","date_gmt":"2022-04-29T09:28:24","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=271"},"modified":"2022-07-01T10:25:22","modified_gmt":"2022-07-01T10:25:22","slug":"smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/","title":{"rendered":"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO"},"content":{"rendered":"\n<p>Home automation involves automating household environment equipment. To achieve that, we have created a smart bulb that can be controlled remotely using smart phone app. The aim of this project is to control different home appliances using smartphone at your home.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p>This example is showing how to control a GPIO pin on a RaspberryPi remotely from a smart phone (or another BleuIO Dongle).<\/p>\n\n\n\n<p>For this example we will need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A RaspberryPi<\/li><li>A BleuIO Dongle (https:\/\/www.bleuio.com\/)<\/li><li>Our example python script (https:\/\/github.com\/smart-sensor-devices-ab\/bleuio_rpi_switch_example)<\/li><li>A way to connect to the GPIO Pin (Like a 5V Relay and a Lightbulb)<\/li><\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>WARNING \u2013 THIS PROJECT INVOLVES HIGH VOLTAGES THAT CAN CAUSE SERIOUS INJURY OR DEATH. PLEASE TAKE ALL NECESSARY PRECAUTIONS, AND TURN OFF ALL POWER TO A CIRCUIT BEFORE WORKING ON IT.<\/strong><\/p><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">Connecting the relay<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Beware:<\/h3>\n\n\n\n<p><strong>Always be very careful when experimenting with AC, electrical shock can result in serious injuries!<\/strong>&nbsp;NOTICE OF RISK; DISCLAIMER OF LIABILITY<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.bleuio.com\/getting_started\/img\/smart_bulb\/warning_sign.jpg\" alt=\"alt text\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"743\" height=\"448\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/raspberrypi-bluettoh-smart-bulb-home-automation.jpg\" alt=\"\" class=\"wp-image-272\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/raspberrypi-bluettoh-smart-bulb-home-automation.jpg 743w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/raspberrypi-bluettoh-smart-bulb-home-automation-300x181.jpg 300w\" sizes=\"auto, (max-width: 743px) 100vw, 743px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Instructions for bleuio_rpi_switch_example.py<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Connect the BleuIO Dongle to your RaspberryPi.<\/li><li>Edit the variable \u2018switch\u2019 in the script to the GPIO pin you want to use. (You can use the command pinout to get a graphical view showing you the GPIO pins for the board)<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"553\" height=\"864\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/cmd_pinout.png\" alt=\"\" class=\"wp-image-273\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/cmd_pinout.png 553w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/cmd_pinout-192x300.png 192w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Finally just run python script and and use your phone to connect to the BleuIO Dongle and send on\/off messages to controll the GPIO!<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Instructions for connecting to the BleuIO from mobile<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Download a BLE scanning App that can connect and read\/write to a device. (Like nRFConnect or BLEScanner)<br><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=no.nordicsemi.android.mcp&amp;hl=en\" target=\"_blank\" rel=\"noreferrer noopener\">Android<\/a>,&nbsp;<a href=\"https:\/\/apps.apple.com\/us\/app\/nrf-connect-for-mobile\/id1054362403\" target=\"_blank\" rel=\"noreferrer noopener\">IOS<\/a><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Look for the dongle, it will be advertising as \u2018BleuIO\u2019.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"866\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/1.png\" alt=\"\" class=\"wp-image-274\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/1.png 400w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/1-139x300.png 139w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Connect to the BleuIO Dongle.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>To enable BleuIO to recieve commands you must first write&nbsp;<strong>0x01<\/strong>&nbsp;to the Flow Control characteristic (UUID: 0783b03e-8535-b5a0-7140-a304d2495cb9)<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"866\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/2.png\" alt=\"\" class=\"wp-image-275\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/2.png 400w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/2-139x300.png 139w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Now you can write to the Server RX Data characteristic (UUID: 0783b03e-8535-b5a0-7140-a304d2495cba) to control the GPIO.<br>|CMD|Effect|<br>|\u2013|\u2013|<br>|<strong>\u201cSW=1\u201d<\/strong>| ON|<br>|<strong>\u201cSW=0\u201d<\/strong>| OFF|<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"866\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/3.png\" alt=\"\" class=\"wp-image-276\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/3.png 400w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/3-139x300.png 139w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The script<\/h3>\n\n\n\n<p>Here is the python script that receives the messages from smart phone app and helps control the light.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/python3\n# Copyright 2022 Smart Sensor Devices in Sweden AB\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"),\n# to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,\n# and\/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport time\nimport serial.tools.list_ports\nimport serial\nimport RPi.GPIO as io\n\n\nswitch = 7  # Edit this to suit your setup! (7 = GPIO 04), use command pinout to graphically show you the GPIO pins for the board\nio.setmode(io.BOARD)\nio.setup(switch, io.OUT)\n\nmaster_array = &#91;]\nindex = 1\ndongle_port = \"\"\n\nprint(\"\\nWelcome to BleuIO RaspberryPi Switch Example!\\n\")\n\nprint(\"\\nPlease insert dongle...\")\ntry:\n    while len(master_array) == 0:\n        m_ports = serial.tools.list_ports.comports(include_links=False)\n        for port in m_ports:\n            if str(port.hwid).__contains__(\"VID:PID=2DCF\"):\n                master = port.device + \" \" + port.hwid\n                if master.__contains__(\"VID:PID=2DCF:6002\"):\n                    print(\"Found dongle in port: %s\" % port.device)\n                    master_array.append(master)\n                    dongle_port = port\n                    break\n\n    for dongle in master_array:\n        print(\"\\nConnecting to BleuIO @ %s\\n\" % dongle)\n\n    time.sleep(0.5)\n    dongle_conn = serial.Serial(\n        dongle_port.device,\n        115200,\n        timeout=1,\n    )\n\n    if not dongle_conn.is_open:\n        dongle_conn.open()\n\n    print(\"Starting Advertising...\")\n    dongle_conn.write(\"AT+GAPDISCONNECTALL\\rAT+DUAL\\rAT+ADVSTART\\rATI\\r\".encode())\n    read_tries = 0\n    dongle_resp = \"\"\n    while read_tries &lt; 20:\n        dongle_resp = dongle_conn.readline().decode()\n        if \"Not Advertising\" in dongle_resp:\n            dongle_conn.write(\"AT+ADVSTART\\r\")\n        if b\"Advertising\\r\\n\" in dongle_resp.encode():\n            break\n        read_tries += 1\n        time.sleep(0.01)\n\n    if dongle_resp:\n        print(\"BleuIO is %s\" % dongle_resp)\n    else:\n        print(\"ERROR! No response...\")\n        exit()\n\n    print(\n        \"Going into loop, waiting for signal to turn switch on\/off...\\n(Press Ctrl+C to abort)\"\n    )\n    while True:\n        try:\n            dongle_resp = dongle_conn.readline().decode()\n            if \"SW=0\" in dongle_resp:\n                print(\"Turn Switch off!\")\n                io.output(switch, io.LOW)\n            if \"SW=1\" in dongle_resp:\n                print(\"Turn Switch on!\")\n                io.output(switch, io.HIGH)\n        except KeyboardInterrupt:\n            if dongle_conn.is_open:\n                dongle_conn.write(\"AT+GAPDISCONNECTALL\\rAT+ADVSTOP\\r\".encode())\n                dongle_conn.close()\n                io.cleanup()\n            print(\"\\nBye!\")\n            exit()\n\nexcept Exception as e:\n    print(\"(ERROR: %s)\" % (e))<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Output<\/h3>\n\n\n\n<p>We have tested the script using nRFConnect app from both IOS and Android phone to turn on\/off the light bulb. Here is the output of this project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"458\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/output.jpg\" alt=\"\" class=\"wp-image-277\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/output.jpg 900w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/output-300x153.jpg 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/output-768x391.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Home automation involves automating household environment equipment. To achieve that, we have created a smart bulb that can be controlled remotely using smart phone app. The aim of this project is to control different home appliances using smartphone at your home. Introduction This example is showing how to control a GPIO pin on a RaspberryPi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":278,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-271","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bleuio","category-bleuio-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO - BleuIO - Create Bluetooth Low Energy application<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"Home automation involves automating household environment equipment. To achieve that, we have created a smart bulb that can be controlled remotely using smart phone app. The aim of this project is to control different home appliances using smartphone at your home. Introduction This example is showing how to control a GPIO pin on a RaspberryPi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-29T09:28:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-01T10:25:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/smart-home-automation-raspberry-pi-bluetooth.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"399\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"BleuIO\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO\",\"datePublished\":\"2022-04-29T09:28:24+00:00\",\"dateModified\":\"2022-07-01T10:25:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/\"},\"wordCount\":394,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/smart-home-automation-raspberry-pi-bluetooth.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/\",\"name\":\"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/smart-home-automation-raspberry-pi-bluetooth.jpg\",\"datePublished\":\"2022-04-29T09:28:24+00:00\",\"dateModified\":\"2022-07-01T10:25:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/smart-home-automation-raspberry-pi-bluetooth.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/smart-home-automation-raspberry-pi-bluetooth.jpg\",\"width\":600,\"height\":399},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\",\"name\":\"BleuIO - Create Bluetooth Low Energy application\",\"description\":\"Learn Bluetooth Low Energy programming and build Bluetooth Low Energy Application\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\",\"name\":\"BleuIO\",\"sameAs\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/author\\\/biadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO - BleuIO - Create Bluetooth Low Energy application","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/","og_locale":"en_US","og_type":"article","og_title":"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO - BleuIO - Create Bluetooth Low Energy application","og_description":"Home automation involves automating household environment equipment. To achieve that, we have created a smart bulb that can be controlled remotely using smart phone app. The aim of this project is to control different home appliances using smartphone at your home. Introduction This example is showing how to control a GPIO pin on a RaspberryPi [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2022-04-29T09:28:24+00:00","article_modified_time":"2022-07-01T10:25:22+00:00","og_image":[{"width":600,"height":399,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/smart-home-automation-raspberry-pi-bluetooth.jpg","type":"image\/jpeg"}],"author":"BleuIO","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO","datePublished":"2022-04-29T09:28:24+00:00","dateModified":"2022-07-01T10:25:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/"},"wordCount":394,"commentCount":0,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/smart-home-automation-raspberry-pi-bluetooth.jpg","articleSection":["BleuIO","BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/","url":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/","name":"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/smart-home-automation-raspberry-pi-bluetooth.jpg","datePublished":"2022-04-29T09:28:24+00:00","dateModified":"2022-07-01T10:25:22+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/smart-home-automation-raspberry-pi-bluetooth.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2022\/04\/smart-home-automation-raspberry-pi-bluetooth.jpg","width":600,"height":399},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/smart-phone-controlled-home-automation-using-raspberry-pi-and-bleuio\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Smart Phone Controlled Home Automation using Raspberry Pi and BleuIO"}]},{"@type":"WebSite","@id":"https:\/\/www.bleuio.com\/blog\/#website","url":"https:\/\/www.bleuio.com\/blog\/","name":"BleuIO - Create Bluetooth Low Energy application","description":"Learn Bluetooth Low Energy programming and build Bluetooth Low Energy Application","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bleuio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80","name":"BleuIO","sameAs":["https:\/\/www.bleuio.com\/blog"],"url":"https:\/\/www.bleuio.com\/blog\/author\/biadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":3,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":374,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/271\/revisions\/374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/278"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}