Skip to main content

shelly_core/model/
power.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Serialize, Deserialize)]
4pub struct PowerReading {
5    pub id: u8,
6    pub power_watts: f64,
7    pub voltage: Option<f64>,
8    pub current: Option<f64>,
9    pub total_energy_wh: f64,
10}