shelly-core 0.2.2

Core Shelly device API and model types (Gen1/Gen2/Gen3 HTTP + RPC clients)
Documentation
1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PowerReading {
    pub id: u8,
    pub power_watts: f64,
    pub voltage: Option<f64>,
    pub current: Option<f64>,
    pub total_energy_wh: f64,
}