Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.whirlpool.sensor Namespace Reference

Classes

class  WasherDryerClass
 
class  WasherDryerTimeClass
 
class  WhirlpoolSensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
str|None washer_state (WasherDryer washer)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list CYCLE_FUNC
 
string DOOR_OPEN = "door_open"
 
string ICON_D = "mdi:tumble-dryer"
 
string ICON_W = "mdi:washing-machine"
 
dictionary MACHINE_STATE
 
 SCAN_INTERVAL = timedelta(minutes=5)
 
dictionary TANK_FILL
 

Detailed Description

The Washer/Dryer Sensor for Whirlpool Appliances.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.whirlpool.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Config flow entry for Whrilpool Laundry.

Definition at line 133 of file sensor.py.

◆ washer_state()

str | None homeassistant.components.whirlpool.sensor.washer_state ( WasherDryer  washer)
Determine correct states for a washer.

Definition at line 77 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.whirlpool.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 73 of file sensor.py.

◆ CYCLE_FUNC

list homeassistant.components.whirlpool.sensor.CYCLE_FUNC
Initial value:
1 = [
2  (WasherDryer.get_cycle_status_filling, "cycle_filling"),
3  (WasherDryer.get_cycle_status_rinsing, "cycle_rinsing"),
4  (WasherDryer.get_cycle_status_sensing, "cycle_sensing"),
5  (WasherDryer.get_cycle_status_soaking, "cycle_soaking"),
6  (WasherDryer.get_cycle_status_spinning, "cycle_spinning"),
7  (WasherDryer.get_cycle_status_washing, "cycle_washing"),
8 ]

Definition at line 60 of file sensor.py.

◆ DOOR_OPEN

string homeassistant.components.whirlpool.sensor.DOOR_OPEN = "door_open"

Definition at line 69 of file sensor.py.

◆ ICON_D

string homeassistant.components.whirlpool.sensor.ICON_D = "mdi:tumble-dryer"

Definition at line 70 of file sensor.py.

◆ ICON_W

string homeassistant.components.whirlpool.sensor.ICON_W = "mdi:washing-machine"

Definition at line 71 of file sensor.py.

◆ MACHINE_STATE

dictionary homeassistant.components.whirlpool.sensor.MACHINE_STATE
Initial value:
1 = {
2  MachineState.Standby: "standby",
3  MachineState.Setting: "setting",
4  MachineState.DelayCountdownMode: "delay_countdown",
5  MachineState.DelayPause: "delay_paused",
6  MachineState.SmartDelay: "smart_delay",
7  MachineState.SmartGridPause: "smart_grid_pause",
8  MachineState.Pause: "pause",
9  MachineState.RunningMainCycle: "running_maincycle",
10  MachineState.RunningPostCycle: "running_postcycle",
11  MachineState.Exceptions: "exception",
12  MachineState.Complete: "complete",
13  MachineState.PowerFailure: "power_failure",
14  MachineState.ServiceDiagnostic: "service_diagnostic_mode",
15  MachineState.FactoryDiagnostic: "factory_diagnostic_mode",
16  MachineState.LifeTest: "life_test",
17  MachineState.CustomerFocusMode: "customer_focus_mode",
18  MachineState.DemoMode: "demo_mode",
19  MachineState.HardStopOrError: "hard_stop_or_error",
20  MachineState.SystemInit: "system_initialize",
21 }

Definition at line 38 of file sensor.py.

◆ SCAN_INTERVAL

homeassistant.components.whirlpool.sensor.SCAN_INTERVAL = timedelta(minutes=5)

Definition at line 74 of file sensor.py.

◆ TANK_FILL

dictionary homeassistant.components.whirlpool.sensor.TANK_FILL
Initial value:
1 = {
2  "0": "unknown",
3  "1": "empty",
4  "2": "25",
5  "3": "50",
6  "4": "100",
7  "5": "active",
8 }

Definition at line 29 of file sensor.py.