Tuya Local: 4 outlet smart plug, only 1 switch entity seen

I integrated my 4 outlet smart plug (each outlet can be controlled individually) into Local Tuya without issue but I can only control one of the switches after integration. There is only one localkey for the device, how can I go about adding the other 3 switches to HA? I’m guessing manually in a config file?

Works without issue in the regular Tuya integration. TIA.

What do you mean there’s only one local key? Each plug has its own localkey.
If you can’t add it with integration, you can always do it manualy in your configuration.yaml like this (of course using your own correct data):

localtuya:
  - host: 192.168.YYY.XXX
    device_id: a6d7sa09sd898098as9
    local_key: 7f6r5d8s9d0f0s
    friendly_name: Tuya1
    protocol_version: "3.3"
    entities:
      - platform: switch
        friendly_name: Tuya1
        id: 1
        current: 18
        current_consumption: 19
        voltage: 20

Here’s the device details from tuya developer:

{
  "result": {
    "active_time": 1613522335,
    "biz_type": 18,
    "category": "pc",
    "create_time": 1609646388,
    "icon": "smart/icon/ay1480002761059me2zH/a1998d15806acadcbf5bc0474c9eec4b.png",
    "id": "16610785500291cf119b",
    "ip": "deviceip",
    "lat": "",
    "local_key": "localkey",
    "lon": "",
    "name": "Geeni EXTEND Multi-Port Wall Tap WW119",
    "online": true,
    "owner_id": "ownerid",
    "product_id": "productid",
    "product_name": "Geeni EXTEND Multi-Port Wall Tap WW119",
    "status": [
      {
        "code": "switch_1",
        "value": false
      },
      {
        "code": "switch_2",
        "value": false
      },
      {
        "code": "switch_3",
        "value": false
      },
      {
        "code": "switch_4",
        "value": false
      },
      {
        "code": "countdown_1",
        "value": 0
      },
      {
        "code": "countdown_2",
        "value": 0
      },
      {
        "code": "countdown_3",
        "value": 0
      },
      {
        "code": "countdown_4",
        "value": 0
      }
    ],
    "sub": false,
    "time_zone": "-08:00",
    "uid": "az1523500138988Avj2R",
    "update_time": 1613522439,
    "uuid": "16610785500291cf119b"
  },
  "success": true,
  "t": 1615484844820
}

ok, thanks look like I may need to go the manual route listing out each switch entity.

You need to keep adding switch entities for each switch when you add the device. It’s likely DP 1-4 you should use (set ID to 1 for the first switch, 2 to the second and so on). If you add via config flow, you need to uncheck the little box after you added the first switch (as seen in this picture). If you have already added your device via config flow, you can add additional entities by trying to add a new device (Configuration -> Integration -> Add Integration -> LocalTuya and pick your existing device).

If you instead use YAML, just keep adding entities for all switches:

localtuya:
  - host: 192.168.YYY.XXX
    device_id: xxx
    local_key: yyy
    friendly_name: My device
    protocol_version: "3.3"
    entities:
      - platform: switch
        friendly_name: Switch 
        id: 1
      - platform: switch
        friendly_name: Switch 2
        id: 2
      - platform: switch
        friendly_name: Switch 3
        id: 3
      - platform: switch
        friendly_name: Switch 4
        id: 4

Very helpful sir thanks! Thanks to both of you for your assistance, much appreciated.

For others (aka future me), what @postlund said worked for me, i.e. ticking that checkbox. Note that after initially adding the device and not ticking this box, I couldnt get the checkbox to show without removing and re-adding the integration.