v0.14.1
This commit is contained in:
1 parent
4bb9c8621a
commit
0a2fb8c6c7
47 files changed
+1337
-372
No files matched your search
@@ -7,6 +7,8 @@ pub struct ConfigurationExport {
|
||||
pub zones: Vec<Zone>,
|
||||
#[serde(default)]
|
||||
pub groups: Vec<ClimateGroup>,
|
||||
#[serde(default)]
|
||||
pub device_groups: Vec<DeviceGroup>,
|
||||
pub schedules: Vec<Schedule>,
|
||||
pub automations: Vec<Automation>,
|
||||
#[serde(default)]
|
||||
|
||||
@@ -72,6 +72,42 @@ pub enum EnergySourcePreference {
|
||||
HomeAssistant,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Default)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum DeviceGroupKind {
|
||||
#[default]
|
||||
Split,
|
||||
Multisplit,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct DeviceGroup {
|
||||
pub id: String,
|
||||
pub name: String,
|
||||
#[serde(default)]
|
||||
pub kind: DeviceGroupKind,
|
||||
#[serde(default)]
|
||||
pub device_ids: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub energy_source: EnergySourcePreference,
|
||||
/// Member device whose cumulative GREE Cloud meter represents the whole installation.
|
||||
#[serde(default)]
|
||||
pub energy_device_id: Option<String>,
|
||||
#[serde(default)]
|
||||
pub ha_energy_entity_id: Option<String>,
|
||||
#[serde(default)]
|
||||
pub ha_energy_unit: Option<String>,
|
||||
#[serde(default)]
|
||||
pub ha_energy_device_class: Option<String>,
|
||||
#[serde(default)]
|
||||
pub ha_energy_state_class: Option<String>,
|
||||
/// Member device whose outdoor sensor is shared by every unit in this installation.
|
||||
#[serde(default)]
|
||||
pub outdoor_temperature_device_id: Option<String>,
|
||||
pub created_at: DateTime<Utc>,
|
||||
pub updated_at: DateTime<Utc>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Device {
|
||||
pub id: String,
|
||||
|
||||
Reference in new issue
Block a user