SensorGroup
- class SensorGroup
-
- property name
The name of the group.
- Type
- Raises
ReadOnlyError -- If
Database
is in read only mode.
- list_sensors()
List the sensors of this group.
- duplicate()
Duplicate this sensor group.
- Returns
The duplicated group.
- Return type
- 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), useforce
to force deletion of non empty groups.- Parameters
force (bool) -- Force the deletion of the group even if it contains sensors.
- Raises
NotEmptyError -- If
force
isFalse
and the group contains sensors.ReadOnlyError -- If
Database
is in read only mode.
- create_sensor(name)
Create a new sensor.
- Parameters
name (str) -- The name of the new sensor.
- Returns
The newly created sensor.
- Return type
- Raises
ReadOnlyError -- If
Database
is in read only mode.