Tuya switch not showing any entities - please help me debug

Hi there,

I’ve seen people complain about this more than once, but no solution found. This specific Tuya device is showing up fine, but has not entities (so cannot be used).
Paired a new 2-gang wifi Tuya switch to my with my Tuya smart app. The device seems to be working fine on the Tuya app itself (able to create automations), and is showing up in the Tuya IOT platform with all of its properties. On the Homeassistant side, however, it’s showing up as a device with no entities and events. Looking at the diagnostic dump, the entities array is empty, while the status object does show the correct battery_percentage. Attaching some parts of the diag data at the end.

I’m not sure how to continue debugging this issue - any help will be appreciated.

TIA

    "status_range": {
      "switch_mode1": {
        "type": "Enum",
        "value": {
          "range": [
            "click",
            "press"
          ]
        }
      },
      "switch_mode2": {
        "type": "Enum",
        "value": {
          "range": [
            "click",
            "press"
          ]
        }
      },
      "battery_percentage": {
        "type": "Integer",
        "value": {
          "unit": "%",
          "min": 0,
          "max": 100,
          "scale": 0,
          "step": 1
        }
      }
    },
    "status": {
      "switch_mode1": "click",
      "switch_mode2": "click",
      "battery_percentage": 57
    },
    "home_assistant": {
      "name": "nuu",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    }

Not sure if you have heard of Tuya-Local, I have quite a few Tuya products that show no entitites in HA Tuya Integration, but you can use the ‘Tuya Local’ integration , which exposes the entities are Tuya doesnt. It works with WiFi products and if you have a Tuya product that is not currently support you can log an issue to request for it to be added.

https://github.com/make-all/tuya-local

I experienced similar problems: Wifi Energy meter fron random Aliexpress Seller and a SPC Smart Plug, both working well with Smart Life app.

Tuya cloud integration would work good: easily recognised, get the main features working (cumulative power consumption from the meter and Switch utility) but would lack lot of sensors working.

Added them in LocalTuya, after extensive configuration sensors wold work well in both devices but still the Plug could not be triggered and after a reset and localkey change, this plug has become impossible to reconnect.

I have installed Tuya local and they have been integranted and configurarse almost automatically, and gaining extra sensors. Also the switch works perfect.