v0.14.4
This commit is contained in:
1 parent
7ffaba6c7a
commit
3d69e74319
37 files changed
+426
-318
No files matched your search
@@ -13,9 +13,7 @@ pub struct HomeAssistantSettings {
|
||||
pub url: String,
|
||||
#[serde(default)]
|
||||
pub token: String,
|
||||
#[serde(default)]
|
||||
pub default_entity_id: String,
|
||||
/// Optional outdoor temperature sensor used only as an assist signal.
|
||||
/// Global Home Assistant outdoor temperature sensor. Zones may override it individually.
|
||||
#[serde(default)]
|
||||
pub outdoor_entity_id: String,
|
||||
/// Maximum accepted age of Home Assistant sensor samples.
|
||||
|
||||
@@ -128,7 +128,6 @@ pub struct HomeAssistantSettingsUpdate {
|
||||
pub url: String,
|
||||
#[serde(default)]
|
||||
pub token: Option<String>,
|
||||
pub default_entity_id: String,
|
||||
pub outdoor_entity_id: String,
|
||||
pub sensor_stale_after_seconds: u64,
|
||||
pub allow_invalid_tls: bool,
|
||||
@@ -141,7 +140,6 @@ pub struct HomeAssistantSettingsUpdate {
|
||||
pub struct HomeAssistantSettingsView {
|
||||
pub url: String,
|
||||
pub token_configured: bool,
|
||||
pub default_entity_id: String,
|
||||
pub outdoor_entity_id: String,
|
||||
pub sensor_stale_after_seconds: u64,
|
||||
pub allow_invalid_tls: bool,
|
||||
|
||||
@@ -52,8 +52,13 @@ pub struct Zone {
|
||||
pub smart_fan: bool,
|
||||
#[serde(default = "default_sensor_source")]
|
||||
pub sensor_source: String,
|
||||
/// Per-zone Home Assistant room temperature sensor used by external/combined control.
|
||||
#[serde(default)]
|
||||
pub ha_entity_id: Option<String>,
|
||||
/// Optional per-zone Home Assistant outdoor temperature sensor. When absent, the zone
|
||||
/// uses `HomeAssistantSettings::outdoor_entity_id` (and then the existing GREE fallback).
|
||||
#[serde(default)]
|
||||
pub ha_outdoor_entity_id: Option<String>,
|
||||
/// Weight of the optional room sensor when sensor_source is `combined`.
|
||||
#[serde(default = "default_external_sensor_weight")]
|
||||
pub external_sensor_weight: f64,
|
||||
|
||||
Reference in new issue
Block a user