vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
391 stars 71 forks source link

Alexa confusing ESP chips. #197

Open LordSexy opened 3 years ago

LordSexy commented 3 years ago

Heyho, I added a second ESP32 into my network and tried to add the devices into routines. Now every time I try to get device 3 of my second ESP into a routine another device from the first ESP is getting added.

Is it possible that this random assignment has something to do with the UID? I tried to find solutions by myself, but Im not a gifted programmer. And I dont know for s*** how to use this help. Is anyone willing to help?

In commit 73ff88e I've added ability to manually set the device's uniqueid:

void fauxmoESP::setDeviceUniqueId(unsigned char id, const char *uniqueid)

This can be run any time after a device is created, and this should take care of cases where you want to change a device name or even the host that a device runs on without changing the unique ID.

Originally posted by @pvint in https://github.com/vintlabs/fauxmoESP/issues/126#issuecomment-728645792