alexa-remote
alexa-remote copied to clipboard
Names is returning Serial and not string
When using typescript definitions, apparently names returns Serial. Currently, a cast needs to be done:
const device: Serial = alexa.names["SomeDeviceName"] as unknown as Serial;
const serial = device.serialNumber;
alexa.sendSequenceCommand(serial, 'speak', data.text);