use anyhow::{anyhow, bail, Context, Result}; use chrono::{DateTime, Utc}; use reqwest::Client; use serde_json::Value; use std::collections::HashMap; use crate::models::{HaReading, InfluxDbSettings, Reading, ZoneReading}; const DEVICE_MEASUREMENT: &str = "gree_device"; const ZONE_MEASUREMENT: &str = "gree_zone"; const HA_MEASUREMENT: &str = "gree_ha"; // Functional source split intentionally keeps items in the existing module namespace. include!("influxdb/write.rs"); include!("influxdb/query.rs"); include!("influxdb/codec.rs");