🚀 AMEVA-WoL Gateway
Renamed. Up to 1.0.1 the PyPI project was
ameva-wol(frozen old account). From 1.0.2 it isamv-wol(pip install amv-wol); the import packageameva_woland the commandameva-wolare unchanged. Uninstall the old distribution first:pip uninstall ameva-wol.
Lightweight, Secure Telegram-Controlled Wake-on-LAN & Smart Plug Gateway
Tailored for Android (Termux) & Linux
🌟 Overview
AMEVA-WoL is an unprivileged Wake-on-LAN (WoL) and Smart Plug control gateway. It operates strictly via outbound Telegram Bot API long polling—meaning zero inbound network ports, no HTTP listeners, and no router port forwarding required.
With the new Tapo P110 Smart Plug integration, you can now physically control power and monitor energy usage right from Telegram!
📖 For step-by-step bot creation and setup, consult our Telegram Setup Guide.
✨ Key Features
- 🔋 Smart Plug Control: Natively integrates with TP-Link Tapo (P110) to turn devices on/off, reboot, and check live power consumption.
- 🪶 Low Overhead: Idle CPU footprint < 0.1%, RAM consumption ~25–40 MB. Perfect for old Android phones!
- 🛡️ Zero Inbound Exposure: Outbound long polling over HTTPS eliminates public IP requirements.
- 🔒 Ironclad Security:
- Commands restricted to whitelisted Telegram
ALLOWED_USER_IDSandALLOWED_CHAT_IDS. - Secret tokens are dynamically redacted from logs.
- Unprivileged execution (No root/sudo needed).
- Commands restricted to whitelisted Telegram
- 🔄 Always-On Monitoring: Optional background scheduler pings your PCs and sends WoL packets automatically if they go offline.
🏗️ Architecture
flowchart TD
A[Telegram Cloud API]
subgraph Gateway ["📱 Local Gateway Node (Termux / Linux)"]
direction TB
B[AMEVA-WoL Core Engine]
C[(devices.json Registry)]
D[Always-On Scheduler]
B <--> C
B --- D
end
subgraph Targets ["🖥️ Target Systems (LAN)"]
direction TB
E[Workstation PC]
F[Tapo P110 Smart Plug]
end
A <-->|HTTPS Long Polling| B
D -.->|ICMP Ping| E
B ==>|UDP Magic Packet| E
B ==>|Wi-Fi Local Control| F
🚀 Quick Start
📱 1. Termux (Android) 왕초보 가이드 (복사&붙여넣기)
1단계: 패키지 설치 및 소스코드 다운로드
pkg update -y && pkg upgrade -y
pkg install python git -y
git clone https://github.com/uno-km/AMEVA-WoL.git
cd AMEVA-WoL
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
2단계: 환경설정(.env) 세팅 아래 상자 안의 봇 토큰과 내 ID를 넣고 복사/붙여넣기 하세요. Tapo 플러그가 없다면 관련 줄은 비워둬도 됩니다.
cat << 'EOF' > .env
TELEGRAM_BOT_TOKEN=여기에_봇_토큰_입력
ALLOWED_USER_IDS=여기에_내_텔레그램_ID_입력
DEFAULT_BROADCAST=192.168.0.255
DEFAULT_WOL_PORT=9
EOF
3단계: 봇 실행
python -m ameva_wol
🛠️ Command Reference
| Command | Syntax | Description |
|---|---|---|
/start |
/start |
🟢 Check authorization and bot status |
/wake |
/wake [alias|all] |
⚡ Send Wake-on-LAN Magic Packet |
/power add |
/power add <alias> <email> <password> <ip> <mac> |
🔌 Register Tapo Plug credentials & PC MAC for WoL simultaneously |
/power |
/power <on|off|re|status> [alias] |
🔌 Control Tapo Smart Plug (ON/OFF/Reboot/Power Status). /power on also sends a Magic Packet automatically! |
/status |
/status [alias|all] |
🔍 Ping devices to check if they are online |
/add |
/add <alias> <mac> [ip] |
➕ Register a new PC for WoL (if not using Tapo plug) |
/list |
/list |
📋 List all registered devices |
/remove |
/remove <alias> |
🗑️ Delete a device from registry |
/host |
/host |
📊 View Gateway phone/server stats (CPU, RAM, Network) |
/how |
/how |
📖 Read detailed user manual |
⚙️ Advanced Execution Modes
- Default Mode (Telegram commands only):
python -m ameva_wol
- Always-On Mode (Polling + 5-minute periodic ping & keep-alive wake):
python -m ameva_wol --always-on 5
📄 License
MIT License. See LICENSE for details.
Metadata
Release files for amv-wol 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| amv_wol-1.0.2.tar.gz | 42.4 kB | Without provenance | Details for amv_wol-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amv_wol-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for amv_wol-1.0.2-py3-none-any.whl |
Total release size: 83.6 kB
Release files / amv_wol-1.0.2.tar.gz
| Download URL | amv_wol-1.0.2.tar.gz |
|---|---|
| Size | 42.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea5abf94bc55c6b034c0c4e59c27fe21e3b1c1fe154a2b9519f087627130f34c
|
|
BLAKE2b-256 checksum How to use checksums |
8675cda5236398e8cea0196b0fce124c779d81f08d4a1a044995c47deeb2706e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Release files / amv_wol-1.0.2-py3-none-any.whl
| Download URL | amv_wol-1.0.2-py3-none-any.whl |
|---|---|
| Size | 41.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
761d3fd76de42eaa0615f47d589f8bb97d1d960daf8e2d983acc19562168ee0c
|
|
BLAKE2b-256 checksum How to use checksums |
310be2e279a15c12cdf8ea8d6eedb26fc01a7a8caffed2060a243b19b49ee81a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.0
|
Security for amv-wol 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.