Can’t help with the errors, but I will mention that I connected the device with and app called efamilyhome and pulled the device and local keys using tuya key grabber.
I haven’t gotten mine working yet but I did eliminate the KeyError. I needed to keep the “id: 1” line in the config. After that I was able to start up HassIO with no error, however, I still can’t get it to control my device. When I try to turn it on I get the following error…
2018-02-04 14:45:08 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall switch.turn_on: entity_id=[‘switch.plug_213’]>
This is followed by a bunch of other stuff that I didn’t include here.
tuya is the reason I asked this question!