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):
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:
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.