fritz_smarthome
Reads FRITZ!Box Smart Home devices to show switch states, temperatures, power, energy, voltage, humidity and alerts, and retrieves history series for a chosen device.
Instructions
Reads the Smart Home devices (plugs, thermostats, sensors) from the web interface, FRITZ!OS 8.20 and later: each device with AIN, name, product, connection and battery, and its units with switch state, temperature, target, power (W), energy (Wh), voltage (V), level, humidity and alerts. Call it without arguments first to find the name or AIN of a device. With history and device, returns the history of that one device instead: series of power, voltage, energy, temperature and humidity, each with interval, time of the newest value and summary; range keeps one series length and values adds the single values. Use it for consumption, temperatures and switch states; DECT handsets are in fritz_telephony, powerline adapters in fritz_powerline. If the login fails, fritz_doctor checks the access to the web interface. Logs in to the web interface and out again; changes nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "fritz_smarthome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| range | No | Only the series of one length: `hours`, `days` or `months`. Default: all. Needs `history`. | |
| device | No | The device: its name, exact or else ignoring case, or its AIN with or without spaces, as listed without `history`, e.g. `Kühlschrank` or `11657 0123456`. Needs `history`. | |
| values | No | Also all values of each series, the newest first, null for gaps. Only with `history`; each series has its summary anyway. | |
| history | No | The history of `device` instead of the current values of all devices: power (W) and voltage (V) over the last hours, energy (Wh) per day and per month, temperature (°C) and humidity (%), each as a series with its interval in seconds, the time of the newest value (Unix seconds) and a summary (count, gaps, min, avg, max, and the sum for energy). |