SensorGroup

class SensorGroup
property id

The id of the group.

Type

str, read-only

property name

The name of the group.

Type

str

Raises

ReadOnlyError -- If Database is in read only mode.

list_sensors()

List the sensors of this group.

Returns

The list of sensors in the group.

Return type

list(Sensor)

duplicate()

Duplicate this sensor group.

Returns

The duplicated group.

Return type

SensorGroup

Raises

ReadOnlyError -- If Database is in read only mode.

remove(force = False)

Delete a sensor group

Note

By default, only empty groups can be deleted (NotEmptyError is raised otherwise), use force to force deletion of non empty groups.

Parameters

force (bool) -- Force the deletion of the group even if it contains sensors.

Raises
create_sensor(name)

Create a new sensor.

Parameters

name (str) -- The name of the new sensor.

Returns

The newly created sensor.

Return type

Sensor

Raises

ReadOnlyError -- If Database is in read only mode.