Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Add binary sensors #17

@gerard33

Description

@gerard33
  • Doors
  • Windows
  • Door lock state
  • Parking lights
  • Condition based services
  • Control messages
  • Charging
  • Connector status

You can assign this to me. I can rewrite my existing binary sensor component to work with your bimmer connected module. Can you confirm that I should add these as
@property @backend_parameter in the bimmer connected module?

SENSOR_TYPES = {
    'doors_closed': ['Doors', 'opening'],
    'windows_closed': ['Windows', 'opening'],
    'door_lock_state': ['Door lock state', 'safety'],
    'lights_parking': ['Parking lights', 'light'],
    'condition_based_services': ['Condition based services', 'problem'],
    'check_control_messages': ['Control messages', 'problem']
}

SENSOR_TYPES_ELEC = {
    'charging_status': ['Charging', 'power'],       # CHARGINGACTIVE, CHARGINGENDED # attributes: lastChargingEndReason, lastChargingEndResult
    'connectorStatus': ['Connector status', 'plug']
}

CODE_TO_SERVICE_NAME = {
    '00001': 'motor_oil',
    '00003': 'brake_fluid',
    '00017': 'vehicle_inspection',  # from BMW i3
    '00100': 'car_check',
    '00032': 'vehicle_inspection'   # from BMW X1
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions