switchkit 0.2.0

Vendor-neutral abstraction for smart-plug devices (Shelly, Tasmota).
Documentation
//! Vendor-neutral abstraction for smart-plug devices (Shelly, Tasmota).
//!
//! `switchkit` defines the shared device model, error taxonomy, and guardrails
//! that vendor-specific crates (`tasmota-core`, `shelly-core`) implement against,
//! so consumers can handle any supported device uniformly.

pub mod device;
pub mod discovery;
pub mod error;
pub mod guardrail;
pub mod model;
pub mod target;

pub use device::{Discovered, SmartDevice};
pub use discovery::{detect_local_cidr, discover, hosts_in_cidr};
pub use error::{Error, Result};
pub use guardrail::{Hazard, classify};
pub use model::{
    Capabilities, DeviceSnapshot, Energy, Firmware, NetInfo, PowerAction, Relay, RelayState, Signal,
};
pub use target::{DeviceCredentials, DeviceTarget, Vendor};