{
  "id": "tg-electro/tg-ms-pir-s201",
  "vendor": "TG Electro",
  "model": "TG-MS-PIR-S201",
  "category": "sensor",
  "identifiers": {
    "sku": [
      "tuya:ksxoagx7y6gsypck"
    ]
  },
  "status": "controllable",
  "summary": "Motion sensor, controlled locally over the Tuya protocol by tuya-local (stock firmware, no cloud).",
  "projects": [
    {
      "name": "tuya-local",
      "url": "https://github.com/make-all/tuya-local/blob/main/custom_components/tuya_local/devices/tg_electro_motion_sensor.yaml",
      "kind": "integration",
      "license": "MIT"
    }
  ],
  "install": [
    {
      "project": "tuya-local",
      "method": "host-software",
      "guide": "https://github.com/make-all/tuya-local",
      "difficulty": "medium",
      "tools": [
        "Home Assistant (tuya-local is installed through HACS)",
        "Tuya / Smart Life app account (to get the device's local key)"
      ],
      "brick_risk": "none",
      "reversible": "yes",
      "notes": "No flashing: set the device up in the Tuya or Smart Life app first; tuya-local then controls it on your network with its device id and local key. Re-pairing in the app changes the local key."
    }
  ],
  "provenance": {
    "sources": [
      "tuya-local"
    ]
  },
  "updated": "2026-10-17"
}