glome/homeassistant/state

Types

pub type State {
  State(value: StateValue, attributes: Attributes)
}

Constructors

  • State(value: StateValue, attributes: Attributes)
pub type StateValue {
  AirQualityIndex(value: String)
  Battery(value: String)
  CarbonDioxide(value: String)
  CarbonMonoxide(value: String)
  Current(value: String)
  Date(value: String)
  Energy(value: String)
  Frequency(value: String)
  Gas(value: String)
  Humidity(value: String)
  Illuminance(value: String)
  Monetary(value: String)
  NitrogenDioxide(value: String)
  NitrogenMonoxide(value: String)
  NitrousOxide(value: String)
  Ozone(value: String)
  PM1(value: String)
  PM10(value: String)
  PM25(value: String)
  PowerFactor(value: String)
  Power(value: String)
  Pressure(value: String)
  SignalStrength(value: String)
  SulphurDioxide(value: String)
  Temperature(value: String)
  Timestamp(value: String)
  VolatileOrganicCompounds(value: String)
  Voltage(value: String)
  On
  Off
  Low
  Normal
  Open
  Closed
  Charging
  NotCharging
  Cold
  Connected
  Disconnected
  GasDetected
  NoGas
  Hot
  LightDetected
  NoLight
  Unlocked
  Locked
  MoistureDetected
  NoMoisture
  MotionDetected
  Moving
  NotMoving
  NoMotion
  Occupied
  NotOccupied
  PluggedIn
  Unplugged
  PowerDetected
  NoPower
  Home
  Away
  NotHome
  ProblemDetected
  NoProblem
  Running
  NotRunning
  Unsafe
  Safe
  SmokeDetected
  NoSmoke
  SoundDetected
  NoSound
  TamperingDetected
  NoTampering
  UpdateAvailable
  UpToDate
  VibrationDetected
  NoVibration
  Heat
  Idle
  Playing
  Paused
  Unavailable
  Unknown
  StateValue(value: String)
}

Constructors

  • AirQualityIndex(value: String)
  • Battery(value: String)
  • CarbonDioxide(value: String)
  • CarbonMonoxide(value: String)
  • Current(value: String)
  • Date(value: String)
  • Energy(value: String)
  • Frequency(value: String)
  • Gas(value: String)
  • Humidity(value: String)
  • Illuminance(value: String)
  • Monetary(value: String)
  • NitrogenDioxide(value: String)
  • NitrogenMonoxide(value: String)
  • NitrousOxide(value: String)
  • Ozone(value: String)
  • PM1(value: String)
  • PM10(value: String)
  • PM25(value: String)
  • PowerFactor(value: String)
  • Power(value: String)
  • Pressure(value: String)
  • SignalStrength(value: String)
  • SulphurDioxide(value: String)
  • Temperature(value: String)
  • Timestamp(value: String)
  • VolatileOrganicCompounds(value: String)
  • Voltage(value: String)
  • On
  • Off
  • Low
  • Normal
  • Open
  • Closed
  • Charging
  • NotCharging
  • Cold
  • Connected
  • Disconnected
  • GasDetected
  • NoGas
  • Hot
  • LightDetected
  • NoLight
  • Unlocked
  • Locked
  • MoistureDetected
  • NoMoisture
  • MotionDetected
  • Moving
  • NotMoving
  • NoMotion
  • Occupied
  • NotOccupied
  • PluggedIn
  • Unplugged
  • PowerDetected
  • NoPower
  • Home
  • Away
  • NotHome
  • ProblemDetected
  • NoProblem
  • Running
  • NotRunning
  • Unsafe
  • Safe
  • SmokeDetected
  • NoSmoke
  • SoundDetected
  • NoSound
  • TamperingDetected
  • NoTampering
  • UpdateAvailable
  • UpToDate
  • VibrationDetected
  • NoVibration
  • Heat
  • Idle
  • Playing
  • Paused
  • Unavailable
  • Unknown
  • StateValue(value: String)

Functions

pub fn from_dynamic_by_domain(state_map: Dynamic, domain: Domain) -> Result(
  State,
  GlomeError,
)
pub fn get(config: Configuration, entity_id: EntityId) -> Result(
  State,
  GlomeError,
)