tapo 0.9.0

Unofficial Tapo API Client. Works with TP-Link Tapo smart devices. Tested with light bulbs (L510, L520, L530, L535, L610, L630), light strips (L900, L920, L930), plugs (P100, P105, P110, P110M, P115), power strips (P300, P304M, P306, P316M), hubs (H100), switches (S200B, S200D, S210) and sensors (KE100, T100, T110, T300, T310, T315).
Documentation
use chrono::{DateTime, Utc};

/// Power data interval.
pub enum PowerDataInterval {
    /// Every 5 minutes interval. `start_date_time` and `end_date_time` describe an exclusive interval.
    /// If the result would yield more than 144 entries (i.e. 12 hours),
    /// the `end_date_time` will be adjusted to an earlier date and time.
    Every5Minutes {
        /// Start date and time in UTC.
        /// If it is not aligned to the 5 minute mark, it will be rounded to the next 5 minute mark.
        start_date_time: DateTime<Utc>,
        /// End date and time in UTC.
        end_date_time: DateTime<Utc>,
    },
    /// Hourly interval. `start_date_time` and `end_date_time` describe an exclusive interval.
    /// If the result would yield more than 144 entries (i.e. 6 days),
    /// the `end_date_time` will be adjusted to an earlier date and time.
    Hourly {
        /// Start date and time in UTC.
        /// If it is not aligned to the hour mark, it will be rounded to the next hour mark.
        start_date_time: DateTime<Utc>,
        /// End date and time in UTC.
        end_date_time: DateTime<Utc>,
    },
}