Crate fritzapi

source ·
Expand description

Library for interfacing with the "AVM Home Automation" API https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf.

It is used by the fritzctrl utility.

Example

    let mut client = fritzapi::FritzClient::new(user, password);
    // List devices
    let mut devices = client.list_devices()?;
    // If the first device is off, turn it on
    let dev = devices.first_mut().unwrap();
    if !dev.is_on() {
        dev.turn_on(&mut client)?;
    }

Re-exports

Modules

Structs

  • The main interface to get data from the fritz box API.