---
title: "LocalTuya integration"
description: "LocalTuya integration is a Marketplace integration for Home Assistant. It has 33.4k installs sharing analytics, works locally and was last updated January 29, 2026."
canonical: "https://vulpo.app/integrations/marketplace/rospogrigio-localtuya"
url: "https://vulpo.app/integrations/marketplace/rospogrigio-localtuya.md"
last-updated: "2026-10-22"
version: "1.4"
---

# LocalTuya integration

> LocalTuya integration is a Marketplace integration for Home Assistant. It has 33.4k installs sharing analytics, works locally and was last updated January 29, 2026.

LocalTuya integration handles Tuya-based devices locally from Home Assistant instead of through the cloud. Status changes are pushed from the devices rather than polled, so updates arrive quickly, including when a device is operated by hand. It provides binary sensors, climate, covers, fans, lights, numbers, selects, sensors, switches and vacuums, and supports energy monitoring such as voltage and current on compatible devices. Tuya protocol versions 3.1 to 3.4 are supported. A Tuya IoT Cloud account can optionally be linked to retrieve device local keys, and it is only called at startup or when a key needs updating. Setup runs in the UI, where devices are added and their entities configured, and it also offers a reload action, a datapoint setting action and a diagnostics download.

Automatic summary of the README and code of rospogrigio/localtuya. Something wrong, or are you the maintainer and want your own text here? [Get in touch](https://vulpo.app/contact)

[Open in My Home Assistant](https://my.home-assistant.io/redirect/hacs_repository/?owner=rospogrigio&repository=localtuya&category=integration)

On Home Assistant 2026.11 or newer? [Open it in the Marketplace](https://my.home-assistant.io/redirect/marketplace_repository/?owner=rospogrigio&repository=localtuya&category=integration)

## Supports

- **Works locally**: Talks to your devices on your own network. No vendor cloud in between.
- **From the Marketplace**: Installed through the Marketplace, formerly HACS.

## Setting it up

Install it from the Marketplace and restart Home Assistant, then add it under Settings, Devices and services.

### Cloud API account configuration

- **API server region**
- **Client ID**
- **Secret**
- **User ID**
- **Username**
- **Do not configure a Cloud API account**

### After setup

- **Add a new device**
- **Edit a device**
- **Reconfigure Cloud API account**
- **Discovered Devices**
- **Configured Devices**
- **Max Temperature Constant (optional)**
- **Min Temperature Constant (optional)**
- **HVAC Fan Mode DP (optional)**
- **HVAC Fan Mode Set (optional)**
- **HVAC Swing Mode DP (optional)**
- **HVAC Swing Mode Set (optional)**
- **API server region**
- **Client ID**
- **Secret**
- **User ID**
- **Username**
- **Do not configure Cloud API account**
- **Name**
- **Host**
- **Device ID**
- **Local key**
- **Protocol Version**
- **Enable debugging for this device (debug must be enabled also in configuration.yaml)**
- **Scan interval (seconds, only when not updating automatically)**
- **Entities (uncheck an entity to remove it)**
- **Add more entities in 'edit device' mode**
- **Manual DPS to add (separated by commas ',') - used when detection is not working (optional)**
- **DPIDs to send in RESET command (separated by commas ',')- Used when device does not respond to status requests after turning on (optional)**
- **Platform**
- **Do not add any more entities**
- **ID**
- **Friendly name**
- **Current**
- **Current Consumption**
- **Voltage**
- **Open\_Close\_Stop Commands Set**
- **Positioning mode**
- **Current Position (for \*position\* mode only)**
- **Set Position (for \*position\* mode only)**
- **Invert 0-100 position (for \*position\* mode only)**
- **Full opening time, in secs. (for \*timed\* mode only)**
- **Unit of Measurement**
- **Device Class**
- **Scaling Factor**
- **On Value**

Texts from the code of [rospogrigio/localtuya](https://github.com/rospogrigio/localtuya).

## Actions

- **Reload**: Reload localtuya and reconnect to all devices.
- **Set datapoint**: Change the value of a datapoint (DP)
  Fields: Device ID, DP, Value

## Troubleshooting

- **Diagnostics**: Downloads a diagnostics file to attach to a bug report.

## From the README

> A Home Assistant custom Integration for local handling of Tuya-based devices.
>
> This custom integration updates device status via pushing updates instead of polling, so status updates are fast (even when manually operated). The integration also supports the Tuya IoT Cloud APIs, for the retrieval of info and of the local\_keys of the devices.

From the README of [rospogrigio/localtuya](https://github.com/rospogrigio/localtuya#readme), [GNU GPL v3.0](https://spdx.org/licenses/GPL-3.0.html). Shortened.

## At a glance

- Kind: Marketplace integration
- Category: [Hubs and protocols](https://vulpo.app/integrations/category/hubs-and-protocols.md), Smart home hubs
- Brand: [Tuya](https://vulpo.app/integrations/tuya.md)
- Number: 33.4k installs sharing analytics; 4k GitHub stars
- Connection: Works locally
- Upkeep: No update in 6 to 18 months
- Needs: Needs the Marketplace (HACS on 2026.10 and older)
- Latest version: v5.2.5, last updated January 29, 2026
- Domain: `localtuya`
- Source: <https://github.com/rospogrigio/localtuya>
- Issues: <https://github.com/rospogrigio/localtuya/issues>
- Screenshot: https://vulpo.app/integrations-img/0fb658f351e6193a.webp (from rospogrigio/localtuya's README)
- Screenshot: https://vulpo.app/integrations-img/53ebc7e057046fb2.webp (from rospogrigio/localtuya's README)

In Vulpo: Light card, Quick Toggle card, Cover card, Climate card, Apple Watch, Control Center, Climate Live Activity (Pro), Vacuum Live Activity (Pro)

[Widgets & Live Activities in Vulpo](https://vulpo.app/features/widgets-and-live-activities)

## Other ways in for Tuya

| Name | Kind | Installs or stars | Connection | Upkeep |
| --- | --- | --- | --- | --- |
| [Tuya](https://vulpo.app/integrations/core/tuya.md) | Built-in integration | 166k installs sharing analytics | Needs the vendor's cloud | Part of Home Assistant |
| [Tuya Local](https://vulpo.app/integrations/marketplace/make-all-tuya-local.md) | Marketplace integration | 20.4k installs sharing analytics | Works locally | Updated in the last 6 months |
| [Xtend Tuya](https://vulpo.app/integrations/marketplace/azerty9971-xtend-tuya.md) | Marketplace integration | 3.4k installs sharing analytics | Needs the vendor's cloud | Updated in the last 6 months |
| [Tuya Smart IR AC](https://vulpo.app/integrations/marketplace/enzod86-tuya-smart-ir-ac.md) | Marketplace integration | 1k installs sharing analytics | Needs the vendor's cloud | Updated in the last 6 months |
| [LocalTuyaIR Remote Control](https://vulpo.app/integrations/marketplace/clusterm-localtuya-rc.md) | Marketplace integration | 467 installs sharing analytics | Works locally | Updated in the last 6 months |

Independent directory, made by the developer of Vulpo. Not affiliated with Home Assistant or the Open Home Foundation. [About these numbers](https://vulpo.app/integrations/about)

Last updated 2026-10-22. Source: https://vulpo.app/integrations/marketplace/rospogrigio-localtuya

---

- HTML version of this page: https://vulpo.app/integrations/marketplace/rospogrigio-localtuya
- Site index for agents: https://vulpo.app/llms.txt
- Everything in one document: https://vulpo.app/llms-full.txt
- All pages: https://vulpo.app/sitemap.xml
