auto_api v0.1.0 AutoApi.ClimateCapability View Source
Basic settings for Climate Capability
iex> alias AutoApi.ClimateCapability, as: C
iex> C.identifier
<<0x00, 0x24>>
iex> C.name
:climate
iex> C.description
"Climate"
iex> C.command_name(0x00)
:get_climate_state
iex> C.command_name(0x01)
:climate_state
iex> C.command_name(0x02)
:set_climate_profile
iex> C.command_name(0x03)
:start_stop_hvac
iex> C.command_name(0x04)
:start_stop_defogging
iex> C.command_name(0x05)
:start_stop_defrosting
iex> C.command_name(0x06)
:start_stop_ionising
iex> length(C.properties)
10
iex> List.last(C.properties)
{0x0A, :auto_hvac_profile}
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: Climate
Retunrs capability’s identifier: <<0x0, 0x24>>
Returns capability’s unique name: climate
Retunrs properties under Climate:
[{0x1, :inside_temperature}, {0x2, :outside_temperature}, {0x3, :driver_temperature_setting}, {0x4, :passenger_temperature_setting}, {0x5, :hvac_state}, {0x6, :defogging_state}, {0x7, :defrosting_state}, {0x8, :ionising_state}, {0x9, :defrosting_temperature}, {0xA, :auto_hvac_profile}]
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_climate_state | :climate_state | :set_climate_profile | :start_stop_hvac | :start_stop_defogging | :start_stop_defrosting | :start_stop_ionising
Link to this section Functions
Deprecated. Use API level 5 and above.
Retunrs capabilities under Climate:
[]
Deprecated. Use API level 5 and above.
Returns capability size: 1
Returns the command module related to this capability
command_id(AutoApi.ClimateCapability.command_type()) :: integer() | nil
Return commands id based on atom
command_name(integer()) :: AutoApi.ClimateCapability.command_type() | nil
Returns commands readable name.
Available commands:
%{0x0 => :get_climate_state, 0x1 => :climate_state, 0x2 => :set_climate_profile, 0x3 => :start_stop_hvac, 0x4 => :start_stop_defogging, 0x5 => :start_stop_defrosting, 0x6 => :start_stop_ionising}
Returns map of commands id and thier name
[{0x0, :get_climate_state}, {0x1, :climate_state}, {0x2, :set_climate_profile}, {0x3, :start_stop_hvac}, {0x4, :start_stop_defogging}, {0x5, :start_stop_defrosting}, {0x6, :start_stop_ionising}]
Returns capability’s description: Climate
Retunrs capability’s identifier: <<0x0, 0x24>>
Returns capability’s unique name: climate
Retunrs properties under Climate:
[{0x1, :inside_temperature}, {0x2, :outside_temperature}, {0x3, :driver_temperature_setting}, {0x4, :passenger_temperature_setting}, {0x5, :hvac_state}, {0x6, :defogging_state}, {0x7, :defrosting_state}, {0x8, :ionising_state}, {0x9, :defrosting_temperature}, {0xA, :auto_hvac_profile}]
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.