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

Classes

class  MyUplinkDeviceBinarySensor
 
class  MyUplinkDevicePointBinarySensor
 
class  MyUplinkSystemBinarySensor
 

Functions

None async_setup_entry (HomeAssistant hass, MyUplinkConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
BinarySensorEntityDescription|None get_description (DevicePoint device_point)
 

Variables

 ALARM_BINARY_SENSOR_DESCRIPTION
 
 CONNECTED_BINARY_SENSOR_DESCRIPTION
 
 key
 
 translation_key
 

Detailed Description

Binary sensors for myUplink.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.myuplink.binary_sensor.async_setup_entry ( HomeAssistant  hass,
MyUplinkConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up myUplink binary_sensor.

Definition at line 58 of file binary_sensor.py.

◆ get_description()

BinarySensorEntityDescription | None homeassistant.components.myuplink.binary_sensor.get_description ( DevicePoint  device_point)
Get description for a device point.

Priorities:
1. Category specific prefix e.g "NIBEF"
2. Default to None

Definition at line 46 of file binary_sensor.py.

Variable Documentation

◆ ALARM_BINARY_SENSOR_DESCRIPTION

homeassistant.components.myuplink.binary_sensor.ALARM_BINARY_SENSOR_DESCRIPTION
Initial value:
1 = BinarySensorEntityDescription(
2  key="has_alarm",
3  device_class=BinarySensorDeviceClass.PROBLEM,
4  translation_key="alarm",
5 )

Definition at line 39 of file binary_sensor.py.

◆ CONNECTED_BINARY_SENSOR_DESCRIPTION

homeassistant.components.myuplink.binary_sensor.CONNECTED_BINARY_SENSOR_DESCRIPTION
Initial value:
1 = BinarySensorEntityDescription(
2  key="connected_state",
3  device_class=BinarySensorDeviceClass.CONNECTIVITY,
4 )

Definition at line 34 of file binary_sensor.py.

◆ key

homeassistant.components.myuplink.binary_sensor.key

Definition at line 22 of file binary_sensor.py.

◆ translation_key

homeassistant.components.myuplink.binary_sensor.translation_key

Definition at line 23 of file binary_sensor.py.