create_sensor
Model.create_sensor(name, id=None, active=True, sensor_type='SENSOR_BY_AREA', entities=None, locked=False)
Create new sensor.
- Parameters:
- name: Name of the rule.
- active: Whether the sensor is active.
- sensor_type: Type of sensor. Available options:
SENSOR_BY_AREA,SENSOR_BY_MATERIAL, andSENSOR_BY_PLIES. - entities: Entities of the sensor.
- Returns: The created sensor.