auto_api v0.1.0 AutoApi.ParkingTicketCapability View Source
Basic settings for ParkingTicket Capability
iex> alias AutoApi.ParkingTicketCapability, as: P
iex> P.identifier
<<0x00, 0x47>>
iex> P.name
:parking_ticket
iex> P.description
"Parking Ticket"
iex> P.command_name(0x00)
:get_parking_ticket
iex> P.command_name(0x01)
:parking_ticket
iex> P.command_name(0x02)
:start_parking
iex> P.command_name(0x03)
:end_parking
iex> length(P.properties)
5
iex> List.last(P.properties)
{5, :ticket_end_time}
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: Parking Ticket
Retunrs capability’s identifier: <<0x0, 0x47>>
Returns capability’s unique name: parking_ticket
Retunrs properties under Parking Ticket:
[{0x1, :parking_ticket_state}, {0x2, :operator_name}, {0x3, :operator_ticket_id}, {0x4, :ticket_start_time}, {0x5, :ticket_end_time}]
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_parking_ticket | :parking_ticket | :start_parking | :end_parking
Link to this section Functions
Deprecated. Use API level 5 and above.
Retunrs capabilities under Parking Ticket:
[]
Deprecated. Use API level 5 and above.
Returns capability size: 1
Returns the command module related to this capability
command_id(AutoApi.ParkingTicketCapability.command_type()) :: integer() | nil
Return commands id based on atom
command_name(integer()) :: AutoApi.ParkingTicketCapability.command_type() | nil
Returns commands readable name.
Available commands:
%{0x0 => :get_parking_ticket, 0x1 => :parking_ticket, 0x2 => :start_parking, 0x3 => :end_parking}
Returns map of commands id and thier name
[{0x0, :get_parking_ticket}, {0x1, :parking_ticket}, {0x2, :start_parking}, {0x3, :end_parking}]
Returns capability’s description: Parking Ticket
Retunrs capability’s identifier: <<0x0, 0x47>>
Returns capability’s unique name: parking_ticket
Retunrs properties under Parking Ticket:
[{0x1, :parking_ticket_state}, {0x2, :operator_name}, {0x3, :operator_ticket_id}, {0x4, :ticket_start_time}, {0x5, :ticket_end_time}]
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.