auto_api v0.1.0 AutoApi.VehicleStatusCapability View Source
Basic settings for Vehicle Status Capability
iex> alias AutoApi.VehicleStatusCapability, as: VS
iex> VS.identifier
<<0x00, 0x11>>
iex> VS.name
:vehicle_status
iex> VS.description
"Vehicle Status"
iex> VS.command_name(0x00)
:get_vehicle_status
iex> VS.command_name(0x01)
:vehicle_status
iex> length(VS.properties)
12
iex> List.last(VS.properties)
{153, :state}
Link to this section Summary
Functions
Deprecated. Use API level 5 and above
Deprecated. Use API level 5 and above
Returns the command module related to this capability
Return commands id based on atom
Returns commands readable name
Returns map of commands id and thier name
Returns capability’s description: Vehicle Status
Retunrs capability’s identifier: <<0x0, 0x11>>
Returns capability’s unique name: vehicle_status
Retunrs properties under Vehicle Status:
[{0x1, :vin}, {0x2, :powertrain}, {0x3, :model_name}, {0x4, :name}, {0x5, :license_plate}, {0x6, :sales_designation}, {0x7, :model_year}, {0x8, :color_name}, {0x9, :power_in_kw}, {0xA, :number_of_doors}, {0xB, :number_of_seats}, {0x99, :state}]
Returns the command module related to this capability
Returns binary value of capability based on list of available supported capabilities
Returns list of supported sub capability based on binary value
Deprecated. Use API level 5 and above
Deprecated. Use API level 5 and above
Link to this section Types
command_type() :: :get_vehicle_status | :vehicle_status
Link to this section Functions
Deprecated. Use API level 5 and above.
Retunrs capabilities under Vehicle Status:
[]
Deprecated. Use API level 5 and above.
Returns capability size: 1
Returns the command module related to this capability
command_id(AutoApi.VehicleStatusCapability.command_type()) :: integer() | nil
Return commands id based on atom
command_name(integer()) :: AutoApi.VehicleStatusCapability.command_type() | nil
Returns commands readable name.
Available commands:
%{0x0 => :get_vehicle_status, 0x1 => :vehicle_status}
Returns map of commands id and thier name
[{0x0, :get_vehicle_status}, {0x1, :vehicle_status}]
Returns capability’s description: Vehicle Status
Retunrs capability’s identifier: <<0x0, 0x11>>
Returns capability’s unique name: vehicle_status
Retunrs properties under Vehicle Status:
[{0x1, :vin}, {0x2, :powertrain}, {0x3, :model_name}, {0x4, :name}, {0x5, :license_plate}, {0x6, :sales_designation}, {0x7, :model_year}, {0x8, :color_name}, {0x9, :power_in_kw}, {0xA, :number_of_doors}, {0xB, :number_of_seats}, {0x99, :state}]
Returns the command module related to this capability
Returns binary value of capability based on list of available supported capabilities
to_map(binary()) :: [command_type()] :: [map()]
Returns list of supported sub capability based on binary value
Level 5:
ie> HmAutoApi.DoorLocksCapability.to_map(<<0x00, 0x20, 0x01, 0x00, 0x02>>)
[:lock_state, :get_lock_state, :lock_unlock_doors]
Level 4:
ie> HmAutoApi.DoorLocksCapability.to_map(<<0x1, 0x0>>)
[%{bin: <<0x00>>, name: "Unavailable", atom: :unavailable, title: ""}]
Deprecated. Use API level 5 and above.
Deprecated. Use API level 5 and above.