Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.nx584.binary_sensor Namespace Reference

Classes

class  NX584Watcher
 
class  NX584ZoneSensor
 

Functions

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

Variables

 _LOGGER = logging.getLogger(__name__)
 
string CONF_EXCLUDE_ZONES = "exclude_zones"
 
string CONF_ZONE_TYPES = "zone_types"
 
string DEFAULT_HOST = "localhost"
 
string DEFAULT_PORT = "5007"
 
bool DEFAULT_SSL = False
 
 PLATFORM_SCHEMA
 
 ZONE_TYPES_SCHEMA = vol.Schema({cv.positive_int: BINARY_SENSOR_DEVICE_CLASSES_SCHEMA})
 

Detailed Description

Support for exposing NX584 elements as sensors.

Function Documentation

◆ setup_platform()

None homeassistant.components.nx584.binary_sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the NX584 binary sensor platform.

Definition at line 48 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.nx584.binary_sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 25 of file binary_sensor.py.

◆ CONF_EXCLUDE_ZONES

string homeassistant.components.nx584.binary_sensor.CONF_EXCLUDE_ZONES = "exclude_zones"

Definition at line 27 of file binary_sensor.py.

◆ CONF_ZONE_TYPES

string homeassistant.components.nx584.binary_sensor.CONF_ZONE_TYPES = "zone_types"

Definition at line 28 of file binary_sensor.py.

◆ DEFAULT_HOST

string homeassistant.components.nx584.binary_sensor.DEFAULT_HOST = "localhost"

Definition at line 30 of file binary_sensor.py.

◆ DEFAULT_PORT

string homeassistant.components.nx584.binary_sensor.DEFAULT_PORT = "5007"

Definition at line 31 of file binary_sensor.py.

◆ DEFAULT_SSL

bool homeassistant.components.nx584.binary_sensor.DEFAULT_SSL = False

Definition at line 32 of file binary_sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.nx584.binary_sensor.PLATFORM_SCHEMA
Initial value:
1 = BINARY_SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_EXCLUDE_ZONES, default=[]): vol.All(
4  cv.ensure_list, [cv.positive_int]
5  ),
6  vol.Optional(CONF_HOST, default=DEFAULT_HOST): cv.string,
7  vol.Optional(CONF_PORT, default=DEFAULT_PORT): cv.port,
8  vol.Optional(CONF_ZONE_TYPES, default={}): ZONE_TYPES_SCHEMA,
9  }
10 )

Definition at line 36 of file binary_sensor.py.

◆ ZONE_TYPES_SCHEMA

homeassistant.components.nx584.binary_sensor.ZONE_TYPES_SCHEMA = vol.Schema({cv.positive_int: BINARY_SENSOR_DEVICE_CLASSES_SCHEMA})

Definition at line 34 of file binary_sensor.py.