3.9.1.1 Module Level Functions

On the module level, Sensor provides the following functions:

sensors( )

Returns a dictionary containing all available sensors. The format of the dictionary is as follows:

{
  { 'sensor name 1': { 'id': sensor_id_1, 'category': category_id_1 } },
  { 'sensor name 2': { 'id': sensor_id_2, 'category': category_id_2 } },
  ...
}

with sensor_id_X and category_id_X being integer values.

See About this document... for information on suggesting changes.