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

Classes

class  BMWBinarySensor
 
class  BMWBinarySensorEntityDescription
 

Functions

dict[str, Any] _check_control_messages (MyBMWVehicle vehicle)
 
dict[str, Any] _condition_based_services (MyBMWVehicle vehicle, UnitSystem unit_system)
 
dict[str, Any] _format_cbs_report (ConditionBasedService report, UnitSystem unit_system)
 
None async_setup_entry (HomeAssistant hass, BMWConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
dictionary ALLOWED_CHECK_CONTROL_MESSAGE_KEYS
 
dictionary ALLOWED_CONDITION_BASED_SERVICE_KEYS
 

Detailed Description

Reads vehicle status from BMW MyBMW portal.

Function Documentation

◆ _check_control_messages()

dict[str, Any] homeassistant.components.bmw_connected_drive.binary_sensor._check_control_messages ( MyBMWVehicle  vehicle)
private

Definition at line 75 of file binary_sensor.py.

◆ _condition_based_services()

dict[str, Any] homeassistant.components.bmw_connected_drive.binary_sensor._condition_based_services ( MyBMWVehicle  vehicle,
UnitSystem   unit_system 
)
private

Definition at line 54 of file binary_sensor.py.

◆ _format_cbs_report()

dict[str, Any] homeassistant.components.bmw_connected_drive.binary_sensor._format_cbs_report ( ConditionBasedService  report,
UnitSystem   unit_system 
)
private

Definition at line 94 of file binary_sensor.py.

◆ async_setup_entry()

None homeassistant.components.bmw_connected_drive.binary_sensor.async_setup_entry ( HomeAssistant  hass,
BMWConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up the BMW binary sensors from config entry.

Definition at line 198 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 29 of file binary_sensor.py.

◆ ALLOWED_CHECK_CONTROL_MESSAGE_KEYS

dictionary homeassistant.components.bmw_connected_drive.binary_sensor.ALLOWED_CHECK_CONTROL_MESSAGE_KEYS
Initial value:
1 = {
2  "ENGINE_OIL",
3  "TIRE_PRESSURE",
4  "WASHING_FLUID",
5 }

Definition at line 46 of file binary_sensor.py.

◆ ALLOWED_CONDITION_BASED_SERVICE_KEYS

dictionary homeassistant.components.bmw_connected_drive.binary_sensor.ALLOWED_CONDITION_BASED_SERVICE_KEYS
Initial value:
1 = {
2  "BRAKE_FLUID",
3  "BRAKE_PADS_FRONT",
4  "BRAKE_PADS_REAR",
5  "EMISSION_CHECK",
6  "ENGINE_OIL",
7  "OIL",
8  "TIRE_WEAR_FRONT",
9  "TIRE_WEAR_REAR",
10  "VEHICLE_CHECK",
11  "VEHICLE_TUV",
12 }

Definition at line 32 of file binary_sensor.py.