Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.zhong_hong.climate.ZhongHongClimate Class Reference
Inheritance diagram for homeassistant.components.zhong_hong.climate.ZhongHongClimate:
[legend]
Collaboration diagram for homeassistant.components.zhong_hong.climate.ZhongHongClimate:
[legend]

Public Member Functions

def __init__ (self, hub, addr_out, addr_in)
 
None async_added_to_hass (self)
 
def current_temperature (self)
 
def fan_mode (self)
 
def fan_modes (self)
 
HVACMode hvac_mode (self)
 
def is_on (self)
 
def max_temp (self)
 
def min_temp (self)
 
def name (self)
 
None set_fan_mode (self, str fan_mode)
 
None set_hvac_mode (self, HVACMode hvac_mode)
 
None set_temperature (self, **Any kwargs)
 
def target_temperature (self)
 
def target_temperature_step (self)
 
None turn_off (self)
 
None turn_on (self)
 
def unique_id (self)
 
- Public Member Functions inherited from homeassistant.components.climate.ClimateEntity
Any __getattribute__ (self, str name)
 
None add_to_platform_start (self, HomeAssistant hass, EntityPlatform platform, asyncio.Semaphore|None parallel_updates)
 
None async_handle_set_fan_mode_service (self, str fan_mode)
 
None async_handle_set_hvac_mode_service (self, HVACMode hvac_mode)
 
None async_handle_set_preset_mode_service (self, str preset_mode)
 
None async_handle_set_swing_horizontal_mode_service (self, str swing_horizontal_mode)
 
None async_handle_set_swing_mode_service (self, str swing_mode)
 
None async_set_fan_mode (self, str fan_mode)
 
None async_set_humidity (self, int humidity)
 
None async_set_hvac_mode (self, HVACMode hvac_mode)
 
None async_set_preset_mode (self, str preset_mode)
 
None async_set_swing_horizontal_mode (self, str swing_horizontal_mode)
 
None async_set_swing_mode (self, str swing_mode)
 
None async_set_temperature (self, **Any kwargs)
 
None async_toggle (self)
 
None async_turn_aux_heat_off (self)
 
None async_turn_aux_heat_on (self)
 
None async_turn_off (self)
 
None async_turn_on (self)
 
dict[str, Any]|None capability_attributes (self)
 
float|None current_humidity (self)
 
HVACAction|None hvac_action (self)
 
list[HVACMode] hvac_modes (self)
 
bool|None is_aux_heat (self)
 
float max_humidity (self)
 
float min_humidity (self)
 
float precision (self)
 
str|None preset_mode (self)
 
list[str]|None preset_modes (self)
 
None set_humidity (self, int humidity)
 
None set_preset_mode (self, str preset_mode)
 
None set_swing_horizontal_mode (self, str swing_horizontal_mode)
 
None set_swing_mode (self, str swing_mode)
 
str|None state (self)
 
dict[str, Any] state_attributes (self)
 
ClimateEntityFeature supported_features (self)
 
str|None swing_horizontal_mode (self)
 
list[str]|None swing_horizontal_modes (self)
 
str|None swing_mode (self)
 
list[str]|None swing_modes (self)
 
float|None target_humidity (self)
 
float|None target_temperature_high (self)
 
float|None target_temperature_low (self)
 
str temperature_unit (self)
 
None toggle (self)
 
None turn_aux_heat_off (self)
 
None turn_aux_heat_on (self)
 
- Public Member Functions inherited from homeassistant.helpers.entity.Entity
None __init_subclass__ (cls, **Any kwargs)
 
str __repr__ (self)
 
None add_to_platform_abort (self)
 
None add_to_platform_finish (self)
 
bool assumed_state (self)
 
None async_device_update (self, bool warning=True)
 
None async_internal_added_to_hass (self)
 
None async_internal_will_remove_from_hass (self)
 
None async_on_remove (self, CALLBACK_TYPE func)
 
None async_registry_entry_updated (self)
 
None async_remove (self, *bool force_remove=False)
 
None async_removed_from_registry (self)
 
None async_schedule_update_ha_state (self, bool force_refresh=False)
 
None async_set_context (self, Context context)
 
None async_update_ha_state (self, bool force_refresh=False)
 
None async_will_remove_from_hass (self)
 
None async_write_ha_state (self)
 
str|None attribution (self)
 
bool available (self)
 
str|None device_class (self)
 
DeviceInfo|None device_info (self)
 
bool enabled (self)
 
EntityCategory|None entity_category (self)
 
str|None entity_picture (self)
 
bool entity_registry_enabled_default (self)
 
bool entity_registry_visible_default (self)
 
Mapping[str, Any]|None extra_state_attributes (self)
 
bool force_update (self)
 
HassJobType get_hassjob_type (self, str function_name)
 
er.EntityOptionsType|None get_initial_entity_options (self)
 
bool has_entity_name (self)
 
str|None icon (self)
 
None schedule_update_ha_state (self, bool force_refresh=False)
 
bool should_poll (self)
 
str|None suggested_object_id (self)
 
str|None translation_key (self)
 
Mapping[str, strtranslation_placeholders (self)
 
str|None unit_of_measurement (self)
 
bool use_device_name (self)
 
- Public Member Functions inherited from homeassistant.helpers.entity.CachedProperties
None __init__ (cls, str name, tuple[type,...] bases, dict[Any, Any] namespace, **Any kwargs)
 
Any __new__ (mcs, str name, tuple[type,...] bases, dict[Any, Any] namespace, set[str]|None cached_properties=None, **Any kwargs)
 

Public Attributes

 is_initialized
 
- Public Attributes inherited from homeassistant.components.climate.ClimateEntity
 hvac_mode
 
- Public Attributes inherited from homeassistant.helpers.entity.Entity
 device_entry
 
 entity_id
 
 hass
 
 parallel_updates
 
 platform
 
 registry_entry
 

Private Member Functions

def _after_update (self, climate)
 

Private Attributes

 _current_fan_mode
 
 _current_operation
 
 _current_temperature
 
 _device
 
 _hub
 
 _target_temperature
 

Static Private Attributes

list _attr_hvac_modes
 
bool _attr_should_poll = False
 
tuple _attr_supported_features
 
 _attr_temperature_unit = UnitOfTemperature.CELSIUS
 
bool _enable_turn_on_off_backwards_compatibility = False
 

Additional Inherited Members

- Static Public Attributes inherited from homeassistant.components.climate.ClimateEntity
 bool
 
 ClimateEntityFeature
 
 float
 
 None
 
- Static Public Attributes inherited from homeassistant.helpers.entity.Entity
 bool
 
 EntityPlatform
 
 HomeAssistant
 
 None
 
 StateInfo
 
 StateType
 
 str
 

Detailed Description

Representation of a ZhongHong controller support HVAC.

Definition at line 120 of file climate.py.

Constructor & Destructor Documentation

◆ __init__()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.__init__ (   self,
  hub,
  addr_out,
  addr_in 
)
Set up the ZhongHong climate devices.

Definition at line 140 of file climate.py.

Member Function Documentation

◆ _after_update()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate._after_update (   self,
  climate 
)
private
Handle state update.

Definition at line 157 of file climate.py.

◆ async_added_to_hass()

None homeassistant.components.zhong_hong.climate.ZhongHongClimate.async_added_to_hass (   self)
Register callbacks.

Reimplemented from homeassistant.helpers.entity.Entity.

Definition at line 151 of file climate.py.

◆ current_temperature()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.current_temperature (   self)
Return the current temperature.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 190 of file climate.py.

◆ fan_mode()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.fan_mode (   self)
Return the fan setting.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 210 of file climate.py.

◆ fan_modes()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.fan_modes (   self)
Return the list of available fan modes.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 215 of file climate.py.

◆ hvac_mode()

HVACMode homeassistant.components.zhong_hong.climate.ZhongHongClimate.hvac_mode (   self)
Return current operation ie. heat, cool, idle.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 183 of file climate.py.

◆ is_on()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.is_on (   self)
Return true if on.

Definition at line 205 of file climate.py.

◆ max_temp()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.max_temp (   self)
Return the maximum temperature.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 225 of file climate.py.

◆ min_temp()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.min_temp (   self)
Return the minimum temperature.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 220 of file climate.py.

◆ name()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.name (   self)
Return the name of the thermostat, if any.

Reimplemented from homeassistant.helpers.entity.Entity.

Definition at line 173 of file climate.py.

◆ set_fan_mode()

None homeassistant.components.zhong_hong.climate.ZhongHongClimate.set_fan_mode (   self,
str  fan_mode 
)
Set new target fan mode.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 257 of file climate.py.

◆ set_hvac_mode()

None homeassistant.components.zhong_hong.climate.ZhongHongClimate.set_hvac_mode (   self,
HVACMode  hvac_mode 
)
Set new target operation mode.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 245 of file climate.py.

◆ set_temperature()

None homeassistant.components.zhong_hong.climate.ZhongHongClimate.set_temperature (   self,
**Any  kwargs 
)
Set new target temperature.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 237 of file climate.py.

◆ target_temperature()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.target_temperature (   self)
Return the temperature we try to reach.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 195 of file climate.py.

◆ target_temperature_step()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.target_temperature_step (   self)
Return the supported step of target temperature.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 200 of file climate.py.

◆ turn_off()

None homeassistant.components.zhong_hong.climate.ZhongHongClimate.turn_off (   self)
Turn off ac.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 233 of file climate.py.

◆ turn_on()

None homeassistant.components.zhong_hong.climate.ZhongHongClimate.turn_on (   self)
Turn on ac.

Reimplemented from homeassistant.components.climate.ClimateEntity.

Definition at line 229 of file climate.py.

◆ unique_id()

def homeassistant.components.zhong_hong.climate.ZhongHongClimate.unique_id (   self)
Return the unique ID of the HVAC.

Reimplemented from homeassistant.helpers.entity.Entity.

Definition at line 178 of file climate.py.

Member Data Documentation

◆ _attr_hvac_modes

list homeassistant.components.zhong_hong.climate.ZhongHongClimate._attr_hvac_modes
staticprivate
Initial value:
= [
HVACMode.COOL,
HVACMode.HEAT,
HVACMode.DRY,
HVACMode.FAN_ONLY,
HVACMode.OFF,
]

Definition at line 123 of file climate.py.

◆ _attr_should_poll

bool homeassistant.components.zhong_hong.climate.ZhongHongClimate._attr_should_poll = False
staticprivate

Definition at line 130 of file climate.py.

◆ _attr_supported_features

tuple homeassistant.components.zhong_hong.climate.ZhongHongClimate._attr_supported_features
staticprivate
Initial value:
= (
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)

Definition at line 131 of file climate.py.

◆ _attr_temperature_unit

homeassistant.components.zhong_hong.climate.ZhongHongClimate._attr_temperature_unit = UnitOfTemperature.CELSIUS
staticprivate

Definition at line 137 of file climate.py.

◆ _current_fan_mode

homeassistant.components.zhong_hong.climate.ZhongHongClimate._current_fan_mode
private

Definition at line 148 of file climate.py.

◆ _current_operation

homeassistant.components.zhong_hong.climate.ZhongHongClimate._current_operation
private

Definition at line 145 of file climate.py.

◆ _current_temperature

homeassistant.components.zhong_hong.climate.ZhongHongClimate._current_temperature
private

Definition at line 146 of file climate.py.

◆ _device

homeassistant.components.zhong_hong.climate.ZhongHongClimate._device
private

Definition at line 143 of file climate.py.

◆ _enable_turn_on_off_backwards_compatibility

bool homeassistant.components.zhong_hong.climate.ZhongHongClimate._enable_turn_on_off_backwards_compatibility = False
staticprivate

Definition at line 138 of file climate.py.

◆ _hub

homeassistant.components.zhong_hong.climate.ZhongHongClimate._hub
private

Definition at line 144 of file climate.py.

◆ _target_temperature

homeassistant.components.zhong_hong.climate.ZhongHongClimate._target_temperature
private

Definition at line 147 of file climate.py.

◆ is_initialized

homeassistant.components.zhong_hong.climate.ZhongHongClimate.is_initialized

Definition at line 149 of file climate.py.


The documentation for this class was generated from the following file: