Private Member Functions | |
| None | _async_device_turn_off (self) |
| None | _async_device_turn_on (self) |
| None | _async_operate (self, datetime|None time=None, bool force=False) |
| None | _async_sensor_event (self, Event[EventStateChangedData]|Event[EventStateReportedData] event) |
| None | _async_sensor_not_responding (self, datetime|None now=None) |
| None | _async_sensor_update (self, State new_state) |
| None | _async_switch_changed (self, State|None new_state) |
| None | _async_switch_event (self, Event[EventStateChangedData] event) |
| None | _async_update_humidity (self, str humidity) |
| bool | _is_device_active (self) |
Static Private Attributes | |
| bool | _attr_should_poll = False |
Additional Inherited Members | |
Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| device_entry | |
| entity_id | |
| hass | |
| parallel_updates | |
| platform | |
| registry_entry | |
Static Public Attributes inherited from homeassistant.components.humidifier.HumidifierEntity | |
| float | |
| HumidifierEntityFeature | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.ToggleEntity | |
| None | |
Static Public Attributes inherited from homeassistant.helpers.entity.Entity | |
| bool | |
| EntityPlatform | |
| HomeAssistant | |
| None | |
| StateInfo | |
| StateType | |
| str | |
Representation of a Generic Hygrostat device.
Definition at line 166 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.__init__ | ( | self, | |
| HomeAssistant | hass, | ||
| str | name, | ||
| str | switch_entity_id, | ||
| str | sensor_entity_id, | ||
| float | None | min_humidity, | ||
| float | None | max_humidity, | ||
| float | None | target_humidity, | ||
| HumidifierDeviceClass | None | device_class, | ||
| timedelta | None | min_cycle_duration, | ||
| float | dry_tolerance, | ||
| float | wet_tolerance, | ||
| timedelta | None | keep_alive, | ||
| bool | None | initial_state, | ||
| int | None | away_humidity, | ||
| bool | None | away_fixed, | ||
| timedelta | None | sensor_stale_duration, | ||
| str | None | unique_id | ||
| ) |
Initialize the hygrostat.
Definition at line 171 of file humidifier.py.
|
private |
Turn humidifier toggleable device off.
Definition at line 557 of file humidifier.py.
|
private |
Turn humidifier toggleable device on.
Definition at line 552 of file humidifier.py.
|
private |
Check if we need to turn humidifying on or off.
Definition at line 472 of file humidifier.py.
|
private |
Handle ambient humidity changes.
Definition at line 399 of file humidifier.py.
|
private |
Handle sensor stale event.
Definition at line 426 of file humidifier.py.
|
private |
Update state based on humidity sensor.
Definition at line 409 of file humidifier.py.
|
private |
Handle humidifier switch state changes.
Definition at line 443 of file humidifier.py.
|
private |
Handle humidifier switch state changes.
Definition at line 438 of file humidifier.py.
|
private |
Update hygrostat with latest state from sensor.
Definition at line 458 of file humidifier.py.
|
private |
If the toggleable device is currently active.
Definition at line 548 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.async_added_to_hass | ( | self | ) |
Run when entity about to be added.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 222 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.async_set_humidity | ( | self, | |
| int | humidity | ||
| ) |
Set new target humidity.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 367 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.async_set_mode | ( | self, | |
| str | mode | ||
| ) |
Set new mode. This method must be run in the event loop and returns a coroutine.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 564 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.async_turn_off | ( | self, | |
| **Any | kwargs | ||
| ) |
Turn hygrostat off.
Reimplemented from homeassistant.helpers.entity.ToggleEntity.
Definition at line 358 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.async_turn_on | ( | self, | |
| **Any | kwargs | ||
| ) |
Turn hygrostat on.
Reimplemented from homeassistant.helpers.entity.ToggleEntity.
Definition at line 350 of file humidifier.py.
| None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.async_will_remove_from_hass | ( | self | ) |
Run when entity will be removed from hass.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 291 of file humidifier.py.
| bool homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.available | ( | self | ) |
Return True if entity is available.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 298 of file humidifier.py.
| list[str] | None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.available_modes | ( | self | ) |
Return a list of available modes.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 339 of file humidifier.py.
| float | None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.current_humidity | ( | self | ) |
Return the measured humidity.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 320 of file humidifier.py.
| HumidifierDeviceClass homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.device_class | ( | self | ) |
Return the device class of the humidifier.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 346 of file humidifier.py.
| dict[str, Any] | None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.extra_state_attributes | ( | self | ) |
Return the optional state attributes.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 303 of file humidifier.py.
Return true if the hygrostat is on.
Reimplemented from homeassistant.helpers.entity.ToggleEntity.
Definition at line 315 of file humidifier.py.
| float homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.max_humidity | ( | self | ) |
Return the maximum humidity.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 391 of file humidifier.py.
| float homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.min_humidity | ( | self | ) |
Return the minimum humidity.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 382 of file humidifier.py.
Return the current mode.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 330 of file humidifier.py.
| str homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.name | ( | self | ) |
Return the name of the hygrostat.
Reimplemented from homeassistant.helpers.entity.Entity.
Definition at line 310 of file humidifier.py.
| float | None homeassistant.components.generic_hygrostat.humidifier.GenericHygrostat.target_humidity | ( | self | ) |
Return the humidity we try to reach.
Reimplemented from homeassistant.components.humidifier.HumidifierEntity.
Definition at line 325 of file humidifier.py.
|
private |
Definition at line 206 of file humidifier.py.
|
private |
Definition at line 219 of file humidifier.py.
|
private |
Definition at line 195 of file humidifier.py.
|
staticprivate |
Definition at line 169 of file humidifier.py.
|
private |
Definition at line 220 of file humidifier.py.
|
private |
Definition at line 215 of file humidifier.py.
|
private |
Definition at line 214 of file humidifier.py.
|
private |
Definition at line 461 of file humidifier.py.
|
private |
Definition at line 199 of file humidifier.py.
|
private |
Definition at line 201 of file humidifier.py.
|
private |
Definition at line 208 of file humidifier.py.
|
private |
Definition at line 218 of file humidifier.py.
|
private |
Definition at line 203 of file humidifier.py.
|
private |
Definition at line 210 of file humidifier.py.
|
private |
Definition at line 200 of file humidifier.py.
|
private |
Definition at line 209 of file humidifier.py.
|
private |
Definition at line 192 of file humidifier.py.
|
private |
Definition at line 416 of file humidifier.py.
|
private |
Definition at line 205 of file humidifier.py.
|
private |
Definition at line 194 of file humidifier.py.
|
private |
Definition at line 216 of file humidifier.py.
|
private |
Definition at line 204 of file humidifier.py.
|
private |
Definition at line 193 of file humidifier.py.
|
private |
Definition at line 211 of file humidifier.py.
|
private |
Definition at line 202 of file humidifier.py.