There was a need to create a driver for a hub that works over LAN.
How I imagine the algorithm works:
- SmartThings finds the hub on the LAN via broadcast requests
- Based on the information received via HTTP requests, the driver creates a number of devices via
and after that creates the required number of devices through try_create_device
I took the example of esp8266lightbulb as a basis and achieved a full-fledged work with the device, but I can’t figure out how to add multiple devices.
Does anyone have, by chance, an example or explanation of how to achieve the ability to add multiple devices at once to SmartThings?