Add a device in 2 or more groups

Imran Khan7 years ago

Hello,

I am new to traccar and have just started trying out the product, I found a lot of help to set things up the way I wanted, there were still a few things which either I am missing or may not be possible. One of them is adding a device to multiple groups. Here is the scenario

We have a member who technically speaking belongs to 3 teams. We have 3 groups created called Coordinator, Travel Desk and Support. I cannot find a place where I can add this device to all 3 groups. Is this even possible?

Anton Tananaev7 years ago

It's not possible, but one group can belong to another group.

Imran Khan7 years ago

Thank You for the quick response. I think I figured out how I can get around this, Thanks to your response.

Great Product

wt[jdcmrf4 months ago

Hi. Could you pls clarify why it's not possible to add a device to multiple groups?

Anton Tananaev4 months ago

Not sure I understand the question. It's just how it's implemented. That's why.

wt[jdcmrf4 months ago

Hi. Could you pls clarify why it's not possible to add a device to multiple groups? what is the reason for this implementation?

Anton Tananaev4 months ago

The reason is to reduce complexity.

wt[jdcmrf4 months ago

thank you for responce. Sorry for disturbing... I will be grateful if you discribe what the complexity is here. We have requirements to add possibility to add a device to multiply groups and I need to figure it out. That's why I am asking

Anton Tananaev4 months ago

It's simply more difficult to implement multiple groups. And we didn't have this requirement from the start.

wt[jdcmrf4 months ago

clear. thank you

sb_sthlm3 months ago

Hello

I found this thread when looking for the same thing as I'm having trouble with sub-groups.

I need to keep track of road tolls and there is a couple of different types of tolls. I'm trying to use geofence for this and have created 3 groups of toll-types( Toll1, Toll2, Toll3) in which I'v connected a couple of geofences that corresponds to each toll-type. I have also connected notifications that I need to be executed, and they are different for each type of toll.

I have also created a group called "All tolls" that I have set to master under Extras in each of the other groups.

All my vehicles I have then added to the group "All tolls" as they can only be connected to one group. After reading the documentation I was under the understanding that the vehicles would inherit all geofences and notifications that's in the sub-groups, in this case "Toll1", "Toll2" and "Toll3" but nothing is executed when I'm passing the geofences.
If I put the vehicle in group "Toll1" it works for all geofences in that group, and same with the other groups individually.

I'm I missing the point of groups or have I screwed up the logic behind it?

Anton Tananaev3 months ago

Why would you think that vehicles will inherit something from sub-groups? Please provide the documentation link that says that.

sb_sthlm3 months ago

I guess from this: "To add a device to a group, edit the device and select the Group under the Extra section. Groups can be nested. To add a group to another group, edit the group and select the parent Group under the Extra section."
But i see I misunderstood after reading it again.

So do I need to connect all of the geofences (about 50) to the main group and then do the logic to separate them in some other way? Or is it possible to have different geofences trigger different notifications some other way than grouping them together like I wanted?

Anton Tananaev3 months ago

Groups can be nested, but permissions go down the hierarchy chain, not up.

sb_sthlm3 months ago

Okey so if I revers the setup it might work.

Now I just need https://github.com/traccar/traccar/pull/4316 to become a reality and my setup would be complete :D ;)