Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.zhong_hong.climate Namespace Reference

Classes

class  ZhongHongClimate
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_GATEWAY_ADDRRESS = "gateway_address"
 
int DEFAULT_GATEWAY_ADDRRESS = 1
 
int DEFAULT_PORT = 9999
 
dictionary MODE_TO_STATE
 
 PLATFORM_SCHEMA
 
string SIGNAL_DEVICE_ADDED = "zhong_hong_device_added"
 
string SIGNAL_ZHONG_HONG_HUB_START = "zhong_hong_hub_start"
 
string ZHONG_HONG_MODE_COOL = "cool"
 
string ZHONG_HONG_MODE_DRY = "dry"
 
string ZHONG_HONG_MODE_FAN_ONLY = "fan_only"
 
string ZHONG_HONG_MODE_HEAT = "heat"
 

Detailed Description

Support for ZhongHong HVAC Controller.

Function Documentation

◆ setup_platform()

None homeassistant.components.zhong_hong.climate.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the ZhongHong HVAC platform.

Definition at line 69 of file climate.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.zhong_hong.climate._LOGGER = logging.getLogger(__name__)
private

Definition at line 35 of file climate.py.

◆ CONF_GATEWAY_ADDRRESS

string homeassistant.components.zhong_hong.climate.CONF_GATEWAY_ADDRRESS = "gateway_address"

Definition at line 37 of file climate.py.

◆ DEFAULT_GATEWAY_ADDRRESS

int homeassistant.components.zhong_hong.climate.DEFAULT_GATEWAY_ADDRRESS = 1

Definition at line 40 of file climate.py.

◆ DEFAULT_PORT

int homeassistant.components.zhong_hong.climate.DEFAULT_PORT = 9999

Definition at line 39 of file climate.py.

◆ MODE_TO_STATE

dictionary homeassistant.components.zhong_hong.climate.MODE_TO_STATE
Initial value:
1 = {
2  ZHONG_HONG_MODE_COOL: HVACMode.COOL,
3  ZHONG_HONG_MODE_HEAT: HVACMode.HEAT,
4  ZHONG_HONG_MODE_DRY: HVACMode.DRY,
5  ZHONG_HONG_MODE_FAN_ONLY: HVACMode.FAN_ONLY,
6 }

Definition at line 61 of file climate.py.

◆ PLATFORM_SCHEMA

homeassistant.components.zhong_hong.climate.PLATFORM_SCHEMA
Initial value:
1 = CLIMATE_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_HOST): cv.string,
4  vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
5  vol.Optional(
6  CONF_GATEWAY_ADDRRESS, default=DEFAULT_GATEWAY_ADDRRESS
7  ): cv.positive_int,
8  }
9 )

Definition at line 45 of file climate.py.

◆ SIGNAL_DEVICE_ADDED

string homeassistant.components.zhong_hong.climate.SIGNAL_DEVICE_ADDED = "zhong_hong_device_added"

Definition at line 42 of file climate.py.

◆ SIGNAL_ZHONG_HONG_HUB_START

string homeassistant.components.zhong_hong.climate.SIGNAL_ZHONG_HONG_HUB_START = "zhong_hong_hub_start"

Definition at line 43 of file climate.py.

◆ ZHONG_HONG_MODE_COOL

string homeassistant.components.zhong_hong.climate.ZHONG_HONG_MODE_COOL = "cool"

Definition at line 55 of file climate.py.

◆ ZHONG_HONG_MODE_DRY

string homeassistant.components.zhong_hong.climate.ZHONG_HONG_MODE_DRY = "dry"

Definition at line 57 of file climate.py.

◆ ZHONG_HONG_MODE_FAN_ONLY

string homeassistant.components.zhong_hong.climate.ZHONG_HONG_MODE_FAN_ONLY = "fan_only"

Definition at line 58 of file climate.py.

◆ ZHONG_HONG_MODE_HEAT

string homeassistant.components.zhong_hong.climate.ZHONG_HONG_MODE_HEAT = "heat"

Definition at line 56 of file climate.py.