@sebringsc I just recently got Tuya switches working in HA. If you have the Device ID (“devid” in Tuya protocol) and Key (“localkey” in Tuya protocol) then I’d suggest testing control with the pytuya python module (which is underlying this HA Device Add-On).
From memory, pip install pytuya
then open a python shell and paste in this code. If successful your outlet should toggle on/off …
import pytuya
device = pytuya.OutletDevice('xxxxxxdevidxxxxxxxxx', '10.x.x.x', 'xxxxxkeyxxxxxxx');
dev.set_status(not device.status()['dps']['1'])
Note: I got devid/localkey via using Burpsuite Proxy on my PC then pointing iPhone wifi Proxy to PC then registering the Tuya outlet in question.
I have 8 Tuya outlets, configuration.yaml looks like:
- platform: tuya
name: Tuya1
host: 10.0.0.171
local_key: xxxxxxxxxxxxxxxx
device_id: xxxxxxxxxxxxxxxxxxxx
id: 1
- platform: tuya
name: Tuya2
host: 10.0.0.172
local_key: xxxxxxxxxxxxxxxx
device_id: xxxxxxxxxxxxxxxxxxxx
id: 1