pub struct SaunaStatus {Show 41 fields
pub sauna_id: String,
pub sauna_selected: bool,
pub sanarium_selected: bool,
pub ir_selected: bool,
pub selected_sauna_temperature: i32,
pub selected_sanarium_temperature: i32,
pub selected_ir_temperature: i32,
pub selected_hum_level: i32,
pub selected_ir_level: i32,
pub selected_hour: i32,
pub selected_minute: i32,
pub is_connected: bool,
pub is_powered_on: bool,
pub is_ready_for_use: bool,
pub current_temperature: i32,
pub current_humidity: i32,
pub status_code: i32,
pub status_message: Option<String>,
pub show_remaining_bathing_time: bool,
pub remaining_bathing_hours: i32,
pub remaining_bathing_minutes: i32,
pub bathing_time_selected: bool,
pub selected_bathing_time_hours: i32,
pub selected_bathing_time_minutes: i32,
pub time_selected: bool,
pub current_humidity_status: i32,
pub current_temperature_status: i32,
pub selected_temperature: i32,
pub selected_mode: i32,
pub op_status: OpStatus,
pub light_is_on: bool,
pub light_brightness: i32,
pub color_light_is_on: bool,
pub color_light_brightness: i32,
pub color_light_color: i32,
pub sunset_is_on: bool,
pub sunset_brightness: i32,
pub login_required: bool,
pub success: bool,
pub error_message: String,
pub error_message_header: String,
}Expand description
Full sauna status as returned by the GetSaunaStatus API
Fields§
§sauna_id: StringUnique identifier for this sauna
sauna_selected: boolWhether traditional sauna mode is selected
sanarium_selected: boolWhether sanarium mode is selected
ir_selected: boolWhether infrared mode is selected
selected_sauna_temperature: i32Target temperature for sauna mode (10-100°C)
selected_sanarium_temperature: i32Target temperature for sanarium mode (40-75°C)
selected_ir_temperature: i32Target temperature for infrared mode
selected_hum_level: i32Humidity level for sanarium mode (1-10)
selected_ir_level: i32Infrared level (1-10)
selected_hour: i32Scheduled start hour (0-23)
selected_minute: i32Scheduled start minute (0-59)
is_connected: boolWhether the sauna is connected to the network
is_powered_on: boolWhether the sauna is currently powered on
is_ready_for_use: boolWhether the sauna is ready for use (reached target temperature)
current_temperature: i32Current measured temperature in °C
current_humidity: i32Current measured humidity percentage
status_code: i32Status code (see StatusCode enum)
status_message: Option<String>Optional status message
show_remaining_bathing_time: boolWhether to show remaining bathing time
remaining_bathing_hours: i32Remaining bathing hours
remaining_bathing_minutes: i32Remaining bathing minutes
bathing_time_selected: boolWhether bathing time is selected
selected_bathing_time_hours: i32Selected bathing time hours
selected_bathing_time_minutes: i32Selected bathing time minutes
time_selected: boolWhether a scheduled time is set
current_humidity_status: i32Current humidity status indicator
current_temperature_status: i32Current temperature status indicator
selected_temperature: i32Currently selected temperature (based on mode)
selected_mode: i32Currently selected mode (1=Sauna, 2=Sanarium, etc.)
op_status: OpStatusOperation status (Off, Scheduled, Active)
light_is_on: boolLight is on
light_brightness: i32Light brightness
color_light_is_on: boolColor light is on
color_light_brightness: i32Color light brightness
color_light_color: i32Color light color
sunset_is_on: boolSunset is on
sunset_brightness: i32Sunset brightness
login_required: boolWhether login is required
success: boolWhether request was successful
error_message: StringError message if any
error_message_header: StringError message header
Implementations§
Source§impl SaunaStatus
impl SaunaStatus
Sourcepub fn current_mode(&self) -> Option<SaunaMode>
pub fn current_mode(&self) -> Option<SaunaMode>
Get the currently selected mode
Sourcepub fn target_temperature(&self) -> i32
pub fn target_temperature(&self) -> i32
Get the target temperature for the currently selected mode
Sourcepub fn status(&self) -> StatusCode
pub fn status(&self) -> StatusCode
Get the status code as an enum
Sourcepub fn remaining_time(&self) -> String
pub fn remaining_time(&self) -> String
Get remaining bathing time as a formatted string
Trait Implementations§
Source§impl Clone for SaunaStatus
impl Clone for SaunaStatus
Source§fn clone(&self) -> SaunaStatus
fn clone(&self) -> SaunaStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more