Local Tuya - configure devices in YAML

Hi,

I have a load of power sockets and other devices that needed a lot of manual work to determine all the sensors and switches (beyond the standard). With 20 such devices it is a pain having to set-up each one in the current UI so I am wondering how I find the config files for the devices and whether there is a way to do this more simply by duplicating the YAML for each entity and just change the device ID/name etc?

I have had a look, but could not find what I was looking for. I am a bit of a beginner, so it if is too complicated I am happy to be told just to do it the manual boring way…20+ devices x 9 sensors and switches each, means it was worth asking the question at least!

1 Like

Blueprints?

1 Like

I believe localtuya, a custom component, no longer uses YAML for configuration and hence the config is stored in the .storage directory. These files are in JSON and can be hand edited but it’s fairly complicated. Definitely back them up before tinkering. You’ll need to create devices for the integration and entities for the devices.

1 Like

Yes, its in the .storage directory in the core.config_entries file. You can scroll down until you get to the “domain”: “localtuya” section.