soef / ioBroker.alexa

MIT License
25 stars 53 forks source link

Smart-Home-Devices deleteAll and discoverDevices not usable after another #29

Closed thost96 closed 4 years ago

thost96 commented 4 years ago

Hi, I wanted to implement a way how I can delete all Alexa Smart Home Devices and scan for new ones after the deleteAll has finished, but as deleteAll gets pushed, the whole Smart-Home-Devices folder gets removed. So it's not possible to use discoverDevices after that, as it isn't available anymore. Waiting for the adapter to recreate them takes a long time and might require some instance restart, which isn't a solution to me.

It would be nice to only delete all devices from the Smart-Home-Devices folder except of deleteAll and discoverDevices buttons.

Thanks!