Alexa Skill includes LAMBDA script, python_script, home assistant scripts and automation for last_called device to work with purposed intents
git clone https://github.com/mmstano/ha-echo-command-center.gitThe ha-echo-command-center is an innovative automation skill designed for Alexa that integrates a LAMBDA script, Python scripts, and home assistant scripts to facilitate seamless interaction with the last_called device using purpose-driven intents. This skill enables users to automate their home environment efficiently, allowing for a more streamlined experience when controlling smart devices through voice commands. By leveraging the capabilities of Claude Code, developers can enhance their home automation projects with ease. One of the key benefits of the ha-echo-command-center is its ability to simplify complex automation tasks, saving users time and effort in setting up and managing their smart home systems. Although specific time savings are not quantified, the skill's streamlined approach to device interaction can significantly reduce the time spent on manual configurations and troubleshooting. This makes it an invaluable tool for developers and product managers looking to enhance their automation workflows without extensive coding. This skill is particularly well-suited for developers, product managers, and AI practitioners who are looking to implement AI automation in their projects. It can be used in various scenarios, such as automating lighting, controlling smart appliances, or managing security systems through voice commands. For example, a developer could use this skill to create a voice-activated system that turns on lights and adjusts the thermostat based on user preferences, thereby improving the overall user experience. With an intermediate difficulty level and a typical implementation time of around 30 minutes, the ha-echo-command-center is accessible for those with some programming experience. It fits seamlessly into AI-first workflows by enabling voice-controlled automation, thus enhancing productivity and efficiency in home management. As the demand for AI automation continues to grow, integrating skills like ha-echo-command-center into your projects can provide a competitive edge in the evolving landscape of smart technology.
[{"step":"Set up the Home Assistant Alexa Media Player integration","action":"Install the [Alexa Media Player integration](https://www.home-assistant.io/integrations/alexa_media/) in Home Assistant. Configure it with your Amazon credentials and ensure it detects all Alexa devices in your home.","tip":"Enable debug logging for the Alexa Media Player integration to verify device detection and last_called events."},{"step":"Create a Home Assistant helper to store the last called device","action":"Go to **Settings > Devices & Services > Helpers** and create a new **Input Text** helper named `alexa_last_called`. This will store the device name and timestamp of the last Alexa interaction.","tip":"Use a template sensor to format the timestamp in a human-readable way. Example: `{{ states('input_text.alexa_last_called') | from_json }}`"},{"step":"Define the Sortd task template","action":"Create a YAML template in Home Assistant for the Sortd task. Example:\n```yaml\ntemplate: |\n Follow up on Alexa interaction from {{ device }} at {{ timestamp }}\n \n Notes:\n - Device: {{ device }}\n - Timestamp: {{ timestamp }}\n - Suggested next steps:\n 1. Review the interaction context\n 2. Follow up with the customer\n 3. Update task status upon completion\n```","tip":"Use the `{{ device }}` and `{{ timestamp }}` variables to dynamically populate the task title and notes."},{"step":"Create the Home Assistant automation","action":"Add a new automation in Home Assistant with the following trigger and action:\n\n**Trigger:**\n```yaml\nplatform: state\nentity_id: sensor.alexa_media_last_called\n```\n\n**Action:**\n```yaml\nservice: input_text.set_value\nentity_id: input_text.alexa_last_called\ndata:\n value: >-\n {\"device\": \"{{ trigger.to_state.state }}\", \"timestamp\": \"{{ now().isoformat() }}\"}\n```\n\nThen, add a second action to create the Sortd task using the `sortd_gmail_task.create` service (or a webhook if the service is not available).","tip":"Test the automation by triggering an Alexa device and verifying that the task appears in Sortd. Use the Sortd mobile app to check notifications."},{"step":"Configure Sortd task assignment and tags","action":"In Sortd, create a dedicated board (e.g., 'Alexa Follow-ups') and assign tasks to the appropriate team member or queue. Use tags like `alexa-followup` and `urgent` to categorize tasks. Set up Sortd's AI features to prioritize tasks based on urgency or customer sentiment.","tip":"Use Sortd's automation rules to auto-assign tasks based on the Alexa device's location (e.g., 'Living Room' = Customer Support team)."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/mmstano/ha-echo-command-centerCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Create a Home Assistant automation that syncs the last called Alexa device with [DEVICE_NAME] in Sortd (Gmail task board). Use the following steps: 1. Trigger when an Alexa device is last called via the Home Assistant Alexa Media Player integration. 2. Log the device name and timestamp to a Home Assistant helper. 3. Format a task in Sortd with the device name, timestamp, and a pre-defined template like 'Follow up on Alexa interaction from [DEVICE_NAME] at [TIMESTAMP]'. 4. Assign the task to the appropriate Sortd board (e.g., 'Sales Leads' or 'Customer Support'). 5. Include a note with suggested next steps (e.g., 'Check if this interaction requires a follow-up email or call'). Use the Home Assistant 'sortd_gmail_task' service if available, or simulate the task creation via a webhook to Sortd's API. Ensure the task is tagged with 'alexa-followup' for easy filtering.
### Home Assistant Automation Output **Trigger:** Alexa Echo Studio (Living Room) was last called at 2023-11-15 14:32:18. **Action Logged:** ```yaml helper.alexa_last_called: device: "Echo Studio (Living Room)" timestamp: "2023-11-15T14:32:18Z" ``` **Sortd Task Created:** ``` Title: Follow up on Alexa interaction from Echo Studio (Living Room) at 2023-11-15 14:32 Board: Customer Support Status: To Do Assignee: Support Team Tags: alexa-followup, urgent Notes: - Customer likely asked about order status (reference: #ORD-2023-4567) - Suggested next steps: 1. Check order #ORD-2023-4567 in Shopify 2. Reply to customer via Gmail with tracking link 3. Update task status to 'In Progress' upon completion ``` **Automation Details:** - **Service Called:** `sortd_gmail_task.create` - **Task ID:** `SORTD-20231115-1432` - **Priority:** High (due to potential order inquiry) - **Follow-up Reminder:** Set for 24 hours later if task remains unassigned. **Notes:** - The task was automatically assigned to the 'Customer Support' board based on the Alexa device's location (Living Room = Customer Support team). - The 'alexa-followup' tag ensures this task appears in a dedicated Sortd view for quick filtering. - The timestamp was converted to the user's local timezone (EST) for clarity. **Next Steps:** 1. The support team received a notification in Sortd via email and Slack integration. 2. The task is now visible in the Sortd mobile app for on-the-go updates. 3. If the task remains unassigned after 2 hours, the automation escalates it to the team lead.
Automate your browser workflows effortlessly
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan