Each blueprint now has its own folder containing: - blueprint.yaml: The automation code with a short header - README.md: Detailed documentation extracted from headers Updated CLAUDE.md with repository structure guidelines. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
954 B
954 B
Telegram Commands Blueprint
This blueprint responds to Telegram bot commands (e.g., /start, /help, /status). Each command can trigger a different callback action and send an optional reply.
How It Works
- User sends a command to the Telegram bot (e.g.,
/lights_on) - Home Assistant receives
telegram_commandevent - Blueprint matches command to the configured list
- Executes the corresponding callback action
- Optionally sends a reply message
Command Format
Commands should start with "/" (e.g., /status, /lights_on, /arm_alarm). The bot must be configured to receive these commands.
Example Configuration
| Commands | Answers |
|---|---|
/status |
"Status checked" |
/lights_on |
"Lights turned on" |
/lights_off |
"Lights turned off" |
/arm |
"Alarm armed" |
Each command has its own callback action that executes when received.
Author
Alexei Dolgolyov (dolgolyov.alexei@gmail.com)