{"id":2992,"date":"2023-01-31T14:15:31","date_gmt":"2023-01-31T06:15:31","guid":{"rendered":"https:\/\/blog.facilitybot.co\/blog\/?post_type=knowledgebase&#038;p=2992"},"modified":"2023-04-14T14:59:38","modified_gmt":"2023-04-14T06:59:38","slug":"integrating-iot-sensors-to-facilitybot-door-contact-sensor","status":"publish","type":"knowledgebase","link":"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/","title":{"rendered":"Integrating IoT Sensors to FacilityBot (Door Contact Sensor)"},"content":{"rendered":"\n<p>Integrating IoT Sensors to FacilityBot is quick and easy.<\/p>\n\n\n\n<p>For this article, we will use a LoRaWan Door Contact sensor connected to a Lora Gateway. However, FacilityBot can be integrated with any type of IoT sensors.&nbsp;<\/p>\n\n\n\n<p>The Lora Gateway will send data to FacilityBot using MQTT. FacilityBot can then show the sensor data in a chart on a dashboard or <a href=\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/workflows\/automatically-create-a-request-ticket-when-a-sensor-is-triggered\/\">automatically trigger a request ticket<\/a> if the sensor data exceeds a specified threshold.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Integrating IoT Sensors to FacilityBot: Door Contact Sensor\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/xJ15Oq28mDY?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Creating the Sensor in FacilityBot<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Log in to FacilityBot and create a new Sensor in Integrations -&gt; Sensors. Let\u2019s call this a Door Contact Sensor.&nbsp;<\/li><li>The data that the sensor will send is called `state.`&nbsp;<\/li><li>Set the sensor to trigger a request when the state is `open.`&nbsp;<\/li><li>To capture the sensor data in a chart, link the sensor to a meter which has already been created called `Door Contact Sensor.`<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Automating Creation of Request When the Sensor is Triggered<\/h2>\n\n\n\n<p>A workflow automation can be set to allow the creation of request when the sensor is triggered.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In Features -&gt; Workflows, create a workflow to create a new request when the sensor is triggered<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring MQTT Connection<\/h2>\n\n\n\n<p>The Lora Gateway also acts as a Network Server.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Log in to the network server interface to configure the MQTT connection information from FacilityBot into the network server.&nbsp;<\/li><li>Copy and paste the Host, Port, Username, Password and Sensor Topic from FacilityBot into the network server interface.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the Integration<\/h2>\n\n\n\n<p>Once the&nbsp; Lora Gateway and the Lora Gateway is connected to FacilityBot, we can test the integration.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When the magnetic contact is separated, FacilityBot receives a payload indicating that the door is open.&nbsp;<\/li><li>When magnet is brought back in contact with the sensor, FacilityBot receives the state as closed.<\/li><li>The meter will record when the sensor was opened and closed. A meter chart can be automatically generated showing when the sensor was opened and closed. This chart can be added to dashboards to be displayed in operations rooms.&nbsp;<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Integrating IoT Sensors to FacilityBot is quick and easy. For this article, we will use a LoRaWan Door Contact sensor connected to [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","knowledgebase_cat":[55],"class_list":["post-2992","knowledgebase","type-knowledgebase","status-publish","hentry","knowledgebase_cat-sensors"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integrating IoT Sensors to FacilityBot (Door Contact Sensor) - FacilityBot - Facilities Management Software<\/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:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integrating IoT Sensors to FacilityBot (Door Contact Sensor) - FacilityBot - Facilities Management Software\" \/>\n<meta property=\"og:description\" content=\"Integrating IoT Sensors to FacilityBot is quick and easy. For this article, we will use a LoRaWan Door Contact sensor connected to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/\" \/>\n<meta property=\"og:site_name\" content=\"FacilityBot - Facilities Management Software\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-14T06:59:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/\",\"url\":\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/\",\"name\":\"Integrating IoT Sensors to FacilityBot (Door Contact Sensor) - FacilityBot - Facilities Management Software\",\"isPartOf\":{\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/#website\"},\"datePublished\":\"2023-01-31T06:15:31+00:00\",\"dateModified\":\"2023-04-14T06:59:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.facilitybot.co\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Integrating IoT Sensors to FacilityBot (Door Contact Sensor)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/#website\",\"url\":\"https:\/\/blog.facilitybot.co\/blog\/\",\"name\":\"FacilityBot - Facilities Management Software\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.facilitybot.co\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/#organization\",\"name\":\"FacilityBot - Facilities Management Software\",\"url\":\"https:\/\/blog.facilitybot.co\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/blog.facilitybot.co\/wp-content\/uploads\/2025\/03\/fb_logo.png\",\"contentUrl\":\"https:\/\/blog.facilitybot.co\/wp-content\/uploads\/2025\/03\/fb_logo.png\",\"width\":150,\"height\":38,\"caption\":\"FacilityBot - Facilities Management Software\"},\"image\":{\"@id\":\"https:\/\/blog.facilitybot.co\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/sg.linkedin.com\/company\/facilitybot\",\"https:\/\/www.youtube.com\/channel\/UCFykie6GjYNh4fxv2PIv8mA\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Integrating IoT Sensors to FacilityBot (Door Contact Sensor) - FacilityBot - Facilities Management Software","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:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/","og_locale":"en_US","og_type":"article","og_title":"Integrating IoT Sensors to FacilityBot (Door Contact Sensor) - FacilityBot - Facilities Management Software","og_description":"Integrating IoT Sensors to FacilityBot is quick and easy. For this article, we will use a LoRaWan Door Contact sensor connected to [&hellip;]","og_url":"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/","og_site_name":"FacilityBot - Facilities Management Software","article_modified_time":"2023-04-14T06:59:38+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/","url":"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/","name":"Integrating IoT Sensors to FacilityBot (Door Contact Sensor) - FacilityBot - Facilities Management Software","isPartOf":{"@id":"https:\/\/blog.facilitybot.co\/blog\/#website"},"datePublished":"2023-01-31T06:15:31+00:00","dateModified":"2023-04-14T06:59:38+00:00","breadcrumb":{"@id":"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.facilitybot.co\/blog\/knowledge-base\/sensors\/integrating-iot-sensors-to-facilitybot-door-contact-sensor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.facilitybot.co\/blog\/"},{"@type":"ListItem","position":2,"name":"Integrating IoT Sensors to FacilityBot (Door Contact Sensor)"}]},{"@type":"WebSite","@id":"https:\/\/blog.facilitybot.co\/blog\/#website","url":"https:\/\/blog.facilitybot.co\/blog\/","name":"FacilityBot - Facilities Management Software","description":"","publisher":{"@id":"https:\/\/blog.facilitybot.co\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.facilitybot.co\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/blog.facilitybot.co\/blog\/#organization","name":"FacilityBot - Facilities Management Software","url":"https:\/\/blog.facilitybot.co\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.facilitybot.co\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/blog.facilitybot.co\/wp-content\/uploads\/2025\/03\/fb_logo.png","contentUrl":"https:\/\/blog.facilitybot.co\/wp-content\/uploads\/2025\/03\/fb_logo.png","width":150,"height":38,"caption":"FacilityBot - Facilities Management Software"},"image":{"@id":"https:\/\/blog.facilitybot.co\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/sg.linkedin.com\/company\/facilitybot","https:\/\/www.youtube.com\/channel\/UCFykie6GjYNh4fxv2PIv8mA"]}]}},"_links":{"self":[{"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/knowledgebase\/2992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/knowledgebase"}],"about":[{"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/types\/knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/comments?post=2992"}],"version-history":[{"count":3,"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/knowledgebase\/2992\/revisions"}],"predecessor-version":[{"id":3866,"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/knowledgebase\/2992\/revisions\/3866"}],"wp:attachment":[{"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/media?parent=2992"}],"wp:term":[{"taxonomy":"knowledgebase_cat","embeddable":true,"href":"https:\/\/blog.facilitybot.co\/blog\/wp-json\/wp\/v2\/knowledgebase_cat?post=2992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}