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

Classes

class  BalboaBinarySensorEntity
 
class  BalboaBinarySensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, BalboaConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

tuple BINARY_SENSOR_DESCRIPTIONS
 
 CIRCULATION_PUMP_DESCRIPTION
 

Detailed Description

Support for Balboa Spa binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.balboa.binary_sensor.async_setup_entry ( HomeAssistant  hass,
BalboaConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up the spa's binary sensors.

Definition at line 22 of file binary_sensor.py.

Variable Documentation

◆ BINARY_SENSOR_DESCRIPTIONS

tuple homeassistant.components.balboa.binary_sensor.BINARY_SENSOR_DESCRIPTIONS
Initial value:
1 = (
2  BalboaBinarySensorEntityDescription(
3  key="Filter1",
4  translation_key="filter_1",
5  device_class=BinarySensorDeviceClass.RUNNING,
6  is_on_fn=lambda spa: spa.filter_cycle_1_running,
7  ),
8  BalboaBinarySensorEntityDescription(
9  key="Filter2",
10  translation_key="filter_2",
11  device_class=BinarySensorDeviceClass.RUNNING,
12  is_on_fn=lambda spa: spa.filter_cycle_2_running,
13  ),
14 )

Definition at line 45 of file binary_sensor.py.

◆ CIRCULATION_PUMP_DESCRIPTION

homeassistant.components.balboa.binary_sensor.CIRCULATION_PUMP_DESCRIPTION
Initial value:
1 = BalboaBinarySensorEntityDescription(
2  key="Circ Pump",
3  translation_key="circ_pump",
4  device_class=BinarySensorDeviceClass.RUNNING,
5  is_on_fn=lambda spa: (pump := spa.circulation_pump) is not None and pump.state > 0,
6 )

Definition at line 59 of file binary_sensor.py.