In today’s hospitality landscape, technology is the backbone of operational excellence and guest satisfaction. Alexa Smart Properties (ASP) is at the forefront, enabling hotels to deliver voice-first, personalized experiences while streamlining staff workflows. Automation ensures every guest enjoys a fresh, ready-to-use Alexa device—streamlining turnover and enhancing satisfaction.
To address these needs, we’ve open-sourced a robust Node.js Lambda function for Alexa Smart Properties room reset. This script is designed for seamless integration with your property management system (PMS) or operational workflows, allowing you to automate device resets at check-out or room turnover.
Here’s a quick look at how the Lambda function initiates the reset process:
/**
* Resets unit settings and Alexa endpoint configurations to desired values.
*
* This function interacts with the Alexa API to perform various tasks such as deleting alarms, reminders, timers,
* notifications, unpairing Bluetooth devices, and setting volume, Do Not Disturb mode, locales,
* wake words, time zone, temperature unit, and distance units for the Alexa endpoint.
*
* @param {string} unitId - The ID of the unit to be reset.
* @param {string} lwaToken - The Login with Amazon (LWA) token for authorization.
* @returns {Promise<Object>} - A Promise that resolves with a success message if reset is successful, otherwise rejects with an error message.
*/
async function resetUnit(unitId, lwaToken)
{
try {
console.log('reset start ');
await deleteAlarms(unitId, lwaToken);
await deleteReminders(unitId, lwaToken);
await deleteTimers(unitId, lwaToken);
const endPointId = await getEndPointId(unitId, lwaToken);
await setVolume(endPointId, lwaToken);
await setDoNotDisturb(endPointId, lwaToken);
await setLocales(endPointId, lwaToken);
await setWakeWords(endPointId, lwaToken);
await setTimeZone(endPointId, lwaToken);
await setTemperatureUnit(endPointId, lwaToken);
await setDistanceUnits(endPointId, lwaToken);
await deleteNotifications(unitId, lwaToken);
await unpairBluetooth(endPointId, lwaToken);
// If all operations succeed, return a success message
return { message: 'Reset successful' };
} catch (error) {
// If any operation fails, throw an error with the error message
console.log('Error :', error);
throw new Error('Reset failed. ', error);
}
}
This comprehensive reset ensures every guest starts with a clean slate.
Sample Workflow:
1. Clone the Repository
bash
git clone https://github.com/alexa-smart-properties/script-sample-nodejs-unit-reset.gitcd script-sample-nodejs-unit-reset
2. Configure Secure Credentials
3. Deploy the Lambda
4. Test and Validate
5. Integrate with PMS
Properties have already leveraged Alexa Smart Properties to enhance guest engagement and operational efficiency. Automated room reset is a natural next step, supporting faster room turnover.
Automating Alexa device resets is a game-changer for hospitality operations. With our open-source Lambda function, you can ensure every guest enjoys a secure, personalized, and seamless Alexa experience—while your staff works more efficiently than ever.
Ready to modernize your room turnover process? Explore the GitHub repository, follow the deployment guide, and unlock the full potential of Alexa Smart Properties in your hotel today.
For questions or contributions, open an issue or pull request on GitHub. Let’s build the future of hospitality together.