← 返回
未分类 Key

FRITZ!Box

Control AVM FRITZ!Box routers and Smarthome devices via TR-064 and Web API. Use when the user wants to manage their FRITZ!Box router (WLAN, connected devices...
通过 TR-064 和 Web API 控制 AVM FRITZ!Box 路由器及智能家居设备。适用于用户希望管理其 FRITZ!Box路由器(WLAN、已连接设备等)
first-it-consulting
未分类 clawhub v1.0.5 1 版本 100000 Key: 需要
★ 0
Stars
📥 335
下载
💾 0
安装
1
版本
#latest

概述

FRITZ!Box Skill

Control your AVM FRITZ!Box router and Smarthome devices.

When to Use

USE this skill when:

  • "Turn WLAN/WiFi on/off"
  • "List connected devices"
  • "Show router info"
  • "Reconnect internet"
  • "List smarthome devices"
  • "Switch smart plug on/off"
  • "Check who's on the network"

DON'T use this skill when:

  • Non-AVM routers
  • Advanced firewall configuration
  • Firmware updates

⚠️ Confirmation Required

The following commands make high-impact, hard-to-reverse changes to the network or connected devices.

Always ask the user for explicit confirmation before running them:

CommandImpact
-----------------
wlan off / wlan onDisables or enables Wi-Fi — may cut network access
reconnectForces internet disconnection and re-dial
smarthome switch off / onTurns a physical device on or off
smarthome toggle Inverts the current device state

Only invoke these after the user has clearly and explicitly requested the specific action.

Prerequisites

  • FRITZ!Box must be accessible on the local network
  • For router functions: TR-064 must be enabled
  • For smarthome: DECT devices must be paired

Authentication

Option 1: .env File (Recommended)

Create a .env file:

FRITZBOX_USER=your_username
FRITZBOX_PASSWORD=your_password
FRITZBOX_HOST=fritz.box

Option 2: Command Line

python3 fritzbox.py --user admin --password YOURPASS wlan status

Common Commands

Router Control

# Router info
python3 fritzbox.py info

# WLAN on/off/status
python3 fritzbox.py wlan on
python3 fritzbox.py wlan off
python3 fritzbox.py wlan status

# List connected network devices
python3 fritzbox.py hosts

# Reconnect internet
python3 fritzbox.py reconnect

Smarthome Control

# List all smarthome devices
python3 fritzbox.py smarthome list

# Switch device on/off (AIN with spaces needs quotes!)
python3 fritzbox.py smarthome switch "08761 0311726" on
python3 fritzbox.py smarthome switch "08761 0311726" off

Note: The AIN (identifier) is shown in the device list. Use quotes if it contains spaces!

Smarthome Device Output

FRITZ!Smart Energy 200 #1
  AIN: 08761 0311726
  State: ON, Power: 84.4W, Voltage: 237.3V, Temp: 20.5°C

Troubleshooting

"401 Unauthorized":

  • Check credentials in .env
  • Ensure user exists in FRITZ!Box

"No smarthome devices found":

  • Check DECT devices are paired
  • Verify device is within range

Switch command fails:

  • Always use quotes around AIN: "08761 0311726"
  • Check device is present (green DECT icon in FRITZ!Box UI)

Custom Host

If your FRITZ!Box is on a different IP:

python3 fritzbox.py --host 192.168.178.1 info

API Used

  • TR-064 - Router functions (WLAN, hosts, device info)
  • Homeautoswitch API - Smarthome device control

Security Guidance

  • Least privilege: Create a dedicated FRITZ!Box user with limited permissions for agent use rather than using the admin account.
  • Protect credentials: Keep .env outside version control (it is listed in .gitignore). Restrict file permissions: chmod 600 .env.
  • Verify the host: Ensure FRITZBOX_HOST points to your own local router. Do not route credentials through untrusted hosts.
  • Scope of access: The configured account can authorize all router and smarthome changes supported by this skill. Treat the credentials with the same care as router admin credentials.

版本历史

共 1 个版本

  • v1.0.5 当前
    2026-05-07 22:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,360 📥 318,618
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 713 📥 243,958
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 670 📥 324,286