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.
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 an Alexa skill called [SKILL_NAME] that integrates with Home Assistant. The skill should include a LAMBDA script, a Python script, and Home Assistant scripts to automate the last called device. The skill should respond to the following intents: [INTENT_1], [INTENT_2], and [INTENT_3]. Provide the complete code for the LAMBDA function, Python script, and Home Assistant automation.
```markdown
# Alexa Skill: Home Automation Hub
## LAMBDA Function
```python
import json
import boto3
def lambda_handler(event, context):
# Process the Alexa intent
intent_name = event['request']['intent']['name']
if intent_name == 'TurnOnDevice':
device_id = event['request']['intent']['slots']['Device']['value']
# Call Home Assistant API to turn on the device
response = {
'version': '1.0',
'response': {
'outputSpeech': {
'type': 'PlainText',
'text': f'Turning on {device_id}'
}
}
}
return response
# Add more intents as needed
```
## Python Script
```python
import requests
def call_home_assistant(action, device_id):
url = 'http://homeassistant.local:8123/api/services/homeassistant/[ACTION]' # Replace [ACTION] with the appropriate action
headers = {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json'
}
data = {
'entity_id': device_id
}
response = requests.post(url, headers=headers, json=data)
return response.status_code
```
## Home Assistant Automation
```yaml
automation:
- alias: 'Turn on last called device'
trigger:
platform: event
event_type: alexa_intent
event_data:
intent: 'TurnOnDevice'
action:
service: homeassistant.turn_on
entity_id: '{{ trigger.event.data.device_id }}'
```
```Your one-stop shop for church and ministry supplies.
Automate your browser workflows effortlessly
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan