SaunaStatus

Struct SaunaStatus 

Source
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: String

Unique identifier for this sauna

§sauna_selected: bool

Whether traditional sauna mode is selected

§sanarium_selected: bool

Whether sanarium mode is selected

§ir_selected: bool

Whether infrared mode is selected

§selected_sauna_temperature: i32

Target temperature for sauna mode (10-100°C)

§selected_sanarium_temperature: i32

Target temperature for sanarium mode (40-75°C)

§selected_ir_temperature: i32

Target temperature for infrared mode

§selected_hum_level: i32

Humidity level for sanarium mode (1-10)

§selected_ir_level: i32

Infrared level (1-10)

§selected_hour: i32

Scheduled start hour (0-23)

§selected_minute: i32

Scheduled start minute (0-59)

§is_connected: bool

Whether the sauna is connected to the network

§is_powered_on: bool

Whether the sauna is currently powered on

§is_ready_for_use: bool

Whether the sauna is ready for use (reached target temperature)

§current_temperature: i32

Current measured temperature in °C

§current_humidity: i32

Current measured humidity percentage

§status_code: i32

Status code (see StatusCode enum)

§status_message: Option<String>

Optional status message

§show_remaining_bathing_time: bool

Whether to show remaining bathing time

§remaining_bathing_hours: i32

Remaining bathing hours

§remaining_bathing_minutes: i32

Remaining bathing minutes

§bathing_time_selected: bool

Whether bathing time is selected

§selected_bathing_time_hours: i32

Selected bathing time hours

§selected_bathing_time_minutes: i32

Selected bathing time minutes

§time_selected: bool

Whether a scheduled time is set

§current_humidity_status: i32

Current humidity status indicator

§current_temperature_status: i32

Current temperature status indicator

§selected_temperature: i32

Currently selected temperature (based on mode)

§selected_mode: i32

Currently selected mode (1=Sauna, 2=Sanarium, etc.)

§op_status: OpStatus

Operation status (Off, Scheduled, Active)

§light_is_on: bool

Light is on

§light_brightness: i32

Light brightness

§color_light_is_on: bool

Color light is on

§color_light_brightness: i32

Color light brightness

§color_light_color: i32

Color light color

§sunset_is_on: bool

Sunset is on

§sunset_brightness: i32

Sunset brightness

§login_required: bool

Whether login is required

§success: bool

Whether request was successful

§error_message: String

Error message if any

§error_message_header: String

Error message header

Implementations§

Source§

impl SaunaStatus

Source

pub fn current_mode(&self) -> Option<SaunaMode>

Get the currently selected mode

Source

pub fn target_temperature(&self) -> i32

Get the target temperature for the currently selected mode

Source

pub fn status(&self) -> StatusCode

Get the status code as an enum

Source

pub fn remaining_time(&self) -> String

Get remaining bathing time as a formatted string

Trait Implementations§

Source§

impl Clone for SaunaStatus

Source§

fn clone(&self) -> SaunaStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SaunaStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SaunaStatus

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for SaunaStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,