Just released a minor update to pimatic-echo.
Move from int for index to string using device id, seems to work, too. This fixes the issue, that alexa mixes up devices if a device is deleted or moved in pimatic
Background: the devices that were published for alexa were indexed using an integer index, which was just the position in the device list. When deleting one of these devices the index was broken, because after restart the list was created again, but with different indexes for the devices. This lead to either Alexa
not finding devices anymore or even switching the wrong device.
No I’m using the unique id of the device, as it seems that Alexa also works with strings.
Please report if you have any issues with this change. I did test this on my setup, but it turns out that the Echos are sometimes behaving pretty strange.
IMPORTANT: You will have to delete your devices from Alexa and start over again. Sorry for that!