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§
pub use devices::AVMDevice;
pub use devices::FritzDect2XX;
pub use error::FritzError;
pub use error::Result;
pub use stats::DeviceStats;
pub use stats::DeviceStatsKind;
pub use stats::Unit;
Modules§
Structs§
- Fritz
Client - The main interface to get data from the fritz box API.