{"id":18,"date":"2026-07-06T14:23:00","date_gmt":"2026-07-06T12:23:00","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?p=18"},"modified":"2026-08-20T17:51:23","modified_gmt":"2026-08-20T15:51:23","slug":"how-to-control-tuya-devices-locally-in-home-assistant","status":"publish","type":"post","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/","title":{"rendered":"How to Control Tuya Devices Locally in Home Assistant"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Anyone who has dabbled in smart home tech probably owns a Tuya-based device. They are affordable, ubiquitous, and available under hundreds of different brand names. However, they share one major flaw: a heavy reliance on the Tuya Cloud.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Relying on a cloud server means latency, potential downtimes, and privacy concerns. If the internet goes down, the smart home breaks. As digital architects advocating for robust and private systems, we need a better way.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we will walk through migrating Tuya devices away from the cloud and integrating them locally into Home Assistant (running on a Raspberry Pi 4) using the <strong>LocalTuya<\/strong> integration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before we begin, the following needs to be in place:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A <strong>Raspberry Pi 4<\/strong> (or any other machine) running a working instance of <strong>Home Assistant<\/strong>.<\/li>\n\n\n\n<li>Tuya devices currently connected to the <strong>Tuya Smart<\/strong> or <strong>Smart Life<\/strong> mobile app.<\/li>\n\n\n\n<li><strong>HACS (Home Assistant Community Store)<\/strong> installed on the Home Assistant instance.<\/li>\n<\/ul>\n\n\n\n<figure class=\"lw-diagram\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/diagrams\/hand-tuya-en.png\" width=\"1120\" height=\"640\" alt=\"Comparison of the Tuya cloud path and the local LocalTuya connection, with the one-off key retrieval via the developer project\">\n<figcaption>The migration in one picture: the device stays the same, only the path changes. The developer project hands over the local key once, after that Home Assistant talks to the device directly \u2014 and the IoT VLAN can go offline.<\/figcaption>\n<\/figure>\n\n<h2 class=\"wp-block-heading\">Step 1: Create a Tuya IoT Developer Account<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To control Tuya devices locally, we need their unique &#8220;Local Keys.&#8221; To get these, we must register as a developer. Don&#8217;t worry\u2014it is completely free.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Navigate to the <a href=\"https:\/\/iot.tuya.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">Tuya IoT Platform<\/a> and create a free account.<\/li>\n\n\n\n<li>Once logged in, go to <strong>Cloud<\/strong> in the left sidebar and click <strong>Create Cloud Project<\/strong>.<\/li>\n\n\n\n<li>Fill in the details (Name: <em>HA Local<\/em>, Industry: <em>Smart Home<\/em>, Data Center: <em>Choose the one closest to the installation site<\/em>).<\/li>\n\n\n\n<li>The next screen asks for API authorization. Ensure that <strong>IoT Core<\/strong>, <strong>Authorization Token Management<\/strong>, and <strong>Smart Home Scene Linkage<\/strong> are selected. Click Authorize.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Link the Mobile App to the Developer Project<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now the devices sitting in the mobile app need linking to this developer project.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>In the Tuya IoT Project, navigate to the <strong>Devices<\/strong> tab.<\/li>\n\n\n\n<li>Select <strong>Link Tuya App Account<\/strong> and click <strong>Add App Account<\/strong>.<\/li>\n\n\n\n<li>A QR code appears on screen.<\/li>\n\n\n\n<li>Open the <strong>Tuya Smart<\/strong> or <strong>Smart Life<\/strong> app on the phone, go to the &#8220;Me&#8221; tab, tap the scanner icon in the top right corner, and scan the QR code.<\/li>\n\n\n\n<li>Confirm the login. The devices now populate in the Tuya IoT platform.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Retrieve the API Credentials<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To automate the retrieval of the Local Keys, Home Assistant needs the project&#8217;s API credentials.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>In the Tuya IoT project, go to the <strong>Overview<\/strong> tab.<\/li>\n\n\n\n<li>The <strong>Authorization Key<\/strong> section holds the <strong>Access ID\/Client ID<\/strong> and <strong>Access Secret\/Client Secret<\/strong>.<\/li>\n\n\n\n<li>Copy both of these strings to a secure notepad; they are needed in a moment.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Install LocalTuya via HACS<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now over to the Raspberry Pi 4 running Home Assistant.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open Home Assistant and navigate to <strong>HACS<\/strong>.<\/li>\n\n\n\n<li>Go to <strong>Integrations<\/strong> and click the <strong>Explore &amp; Download Repositories<\/strong> button.<\/li>\n\n\n\n<li>Search for <strong>LocalTuya<\/strong> and install it.<\/li>\n\n\n\n<li>Once installed, restart the Home Assistant instance to apply the changes.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Configure LocalTuya in Home Assistant<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With the integration installed, it is time to bring the devices locally into Home Assistant.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Go to <strong>Settings &gt; Devices &amp; Services<\/strong> in Home Assistant.<\/li>\n\n\n\n<li>Click <strong>Add Integration<\/strong> and search for <strong>LocalTuya<\/strong>.<\/li>\n\n\n\n<li>A prompt to configure the integration appears. Choose the option to configure it using the Tuya IoT API.<\/li>\n\n\n\n<li>Enter the <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> (from Step 3), and select the user ID (usually available in the dropdown).<\/li>\n\n\n\n<li>Submit the form. LocalTuya will now communicate with the Tuya API <em>one time<\/em> to automatically pull the Local Keys for all devices.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Add and Map the Devices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">LocalTuya now discovers the devices on the local network.<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Select a discovered device from the dropdown list.<\/li>\n\n\n\n<li>Because Tuya devices are highly generic, the &#8220;Data Points&#8221; (DPs) have to be mapped by hand. For example, DP 1 is usually the main Power Switch, while DP 2 might be Brightness (for a bulb).<\/li>\n\n\n\n<li>Assign the correct entity type (e.g., <code>switch<\/code>, <code>light<\/code>, <code>sensor<\/code>) to the corresponding DP.<\/li>\n\n\n\n<li>Click Submit. The device is now integrated into Home Assistant.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Bonus Step: Isolate the Devices (VLAN)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Home Assistant is now talking to the Tuya devices directly over the local network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, the devices themselves are still <em>trying<\/em> to phone home to the Tuya Cloud. To achieve true privacy and prevent unauthorized firmware updates, <strong>Network Separation<\/strong> is the remaining piece.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On a capable router (like Ubiquiti UniFi or pfSense), the Tuya devices get static IPs on an isolated IoT VLAN plus a firewall rule that blocks their outbound traffic to the WAN (Internet), while the Home Assistant Raspberry Pi keeps reaching them. <em>Check out my previous article on Zone-based Firewall Rules to see exactly how to set this up!<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Migrating away from the Tuya Cloud takes a bit of technical legwork, but the reward is a faster, more reliable, and completely private smart home infrastructure. Keeping the data processing local on the Raspberry Pi builds a resilient architecture that answers to its owner, not to a remote server.<\/p>\n\n\n<div class=\"lw-quellen\">\n<h2>Sources<\/h2>\n<ul>\n<li><a href=\"https:\/\/esphome.io\/index.html\" target=\"_blank\" rel=\"noopener noreferrer\">ESPHome documentation<\/a><\/li>\n<li><a href=\"https:\/\/www.home-assistant.io\/docs\/\" target=\"_blank\" rel=\"noopener noreferrer\">Home Assistant documentation<\/a><\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Anyone who has dabbled in smart home tech probably owns a Tuya-based device. They are affordable, ubiquitous, and available under hundreds of different brand names. However, they share one major flaw: a heavy reliance on the Tuya Cloud. Relying on a cloud server means latency, potential downtimes, and privacy concerns. If the internet goes down, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12639,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[91591,91365,91374,91597,91181,91237,91626,91601],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-it-networks","tag-esphome","tag-home-assistant","tag-iot","tag-local-control","tag-raspberry-pi","tag-self-hosting","tag-smart-home-de","tag-tuya"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Control Tuya Devices Locally in Home Assistant - Lukas Wojcik - Blog<\/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.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Control Tuya Devices Locally in Home Assistant - Lukas Wojcik - Blog\" \/>\n<meta property=\"og:description\" content=\"Anyone who has dabbled in smart home tech probably owns a Tuya-based device. They are affordable, ubiquitous, and available under hundreds of different brand names. However, they share one major flaw: a heavy reliance on the Tuya Cloud. Relying on a cloud server means latency, potential downtimes, and privacy concerns. If the internet goes down, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-06T12:23:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-20T15:51:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"luky\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"luky\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/\"},\"author\":{\"name\":\"luky\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"headline\":\"How to Control Tuya Devices Locally in Home Assistant\",\"datePublished\":\"2026-07-06T12:23:00+00:00\",\"dateModified\":\"2026-08-20T15:51:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/\"},\"wordCount\":842,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png\",\"keywords\":[\"ESPHome\",\"Home Assistant\",\"IoT\",\"Local Control\",\"Raspberry Pi\",\"Self-Hosting\",\"Smart Home\",\"Tuya\"],\"articleSection\":[\"IT &amp; Networks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/\",\"name\":\"How to Control Tuya Devices Locally in Home Assistant - Lukas Wojcik - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png\",\"datePublished\":\"2026-07-06T12:23:00+00:00\",\"dateModified\":\"2026-08-20T15:51:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png\",\"width\":1200,\"height\":630,\"caption\":\"How to Control Tuya Devices Locally in Home Assistant\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/it-networks\\\/how-to-control-tuya-devices-locally-in-home-assistant\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Control Tuya Devices Locally in Home Assistant\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"luky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"luky\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/author\\\/luky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Control Tuya Devices Locally in Home Assistant - Lukas Wojcik - Blog","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.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/","og_locale":"en_US","og_type":"article","og_title":"How to Control Tuya Devices Locally in Home Assistant - Lukas Wojcik - Blog","og_description":"Anyone who has dabbled in smart home tech probably owns a Tuya-based device. They are affordable, ubiquitous, and available under hundreds of different brand names. However, they share one major flaw: a heavy reliance on the Tuya Cloud. Relying on a cloud server means latency, potential downtimes, and privacy concerns. If the internet goes down, [&hellip;]","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/","og_site_name":"Lukas Wojcik - Blog","article_published_time":"2026-07-06T12:23:00+00:00","article_modified_time":"2026-08-20T15:51:23+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png","type":"image\/png"}],"author":"luky","twitter_card":"summary_large_image","twitter_misc":{"Written by":"luky","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#article","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/"},"author":{"name":"luky","@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"headline":"How to Control Tuya Devices Locally in Home Assistant","datePublished":"2026-07-06T12:23:00+00:00","dateModified":"2026-08-20T15:51:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/"},"wordCount":842,"commentCount":0,"publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png","keywords":["ESPHome","Home Assistant","IoT","Local Control","Raspberry Pi","Self-Hosting","Smart Home","Tuya"],"articleSection":["IT &amp; Networks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/","name":"How to Control Tuya Devices Locally in Home Assistant - Lukas Wojcik - Blog","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#primaryimage"},"image":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#primaryimage"},"thumbnailUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png","datePublished":"2026-07-06T12:23:00+00:00","dateModified":"2026-08-20T15:51:23+00:00","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#primaryimage","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/08\/hero-18-tuya-smart-home-breaking-free-from-the-c-d.png","width":1200,"height":630,"caption":"How to Control Tuya Devices Locally in Home Assistant"},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/it-networks\/how-to-control-tuya-devices-locally-in-home-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Control Tuya Devices Locally in Home Assistant"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"luky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"luky"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"],"url":"https:\/\/www.lukaswojcik.com\/blog\/author\/luky\/"}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=18"}],"version-history":[{"count":4,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":12609,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/posts\/18\/revisions\/12609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media\/12639"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/categories?post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/tags?post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}