Sending commands to groups of devices 5.7

Track-trace2a year ago

After some more testing i noticed that if any device that is member of the group is offline. That in that case group commands will stop working or only sends the commands to some devices.

In this case i have tested with 5 devices that where added to the group. And have been testing sending the group commands with three different situations.

  1. A new device added to the group that was not yet online (just created the device manually and added it to the group while it was offline).
  2. One of the device in the group is offline.
  3. All device in the group are online.

In the first two cases while sending group commands, the result is unpredictable. In some cases none off the devices receives the command.
in some cases a few devices receive the command. It seems the server stops sending the command in the queue when it gets to the offline device (just my assumption).

In the 3rd case while all devices are online, the command is sent to all devices correctly. Have tested this repeatedly.

The logfile confirmed the above results.

Anton Tananaeva year ago

No errors in the log?

Track-trace2a year ago

No errors in the Log,

Tested again today which again confirms the odd behavior.

Five devices in the group. Five devices online.
Send group command, all devices receive the command.

2023-04-30 13:50:45  INFO: [T6cfbe182] id: 8809002412, command type: custom sent
2023-04-30 13:50:45  INFO: [T2519c2c9] id: 8809002413, command type: custom sent
2023-04-30 13:50:45  INFO: [T6cfbe182: watch > 188.206.108.50] 5b53472a383830393030323431322a303030622a75706c6f61642c373230305d
2023-04-30 13:50:45  INFO: [T852d47e3] id: 8809002312, command type: custom sent
2023-04-30 13:50:45  INFO: [Tb0d1120d] id: 8809002309, command type: custom sent
2023-04-30 13:50:45  INFO: [T852d47e3: watch > 31.161.137.212] 5b53472a383830393030323331322a303030622a75706c6f61642c373230305d
2023-04-30 13:50:45  INFO: [T2519c2c9: watch > 188.206.104.97] 5b53472a383830393030323431332a303030622a75706c6f61642c373230305d
2023-04-30 13:50:45  INFO: [Tf3b34208] id: 8809002352, command type: custom sent
2023-04-30 13:50:45  INFO: [Tb0d1120d: watch > 89.200.12.30] 5b53472a383830393030323330392a303030622a75706c6f61642c373230305d
2023-04-30 13:50:45  INFO: [Tf3b34208: watch > 89.200.41.48] 5b53472a383830393030323335322a303030622a75706c6f61642c373230305d
2023-04-30 13:50:47  INFO: [T852d47e3: watch < 31.161.137.212] 5b33472a383830393030323331322a303030362a75706c6f61645d
2023-04-30 13:50:47  INFO: [Tf3b34208: watch < 89.200.41.48] 5b33472a383830393030323335322a303030362a75706c6f61645d
2023-04-30 13:50:47  INFO: [Tb0d1120d: watch < 89.200.12.30] 5b33472a383830393030323330392a303030362a75706c6f61645d
2023-04-30 13:50:47  INFO: [T6cfbe182: watch < 188.206.108.50] 5b33472a383830393030323431322a303030362a75706c6f61645d
2023-04-30 13:50:50  INFO: [T2519c2c9: watch < 188.206.104.97] 5b33472a383830393030323431332a303030362a75706c6f61645d

1st try with one group device offline 8809002309. Four devices online

Five devices in the group. Four devices online, 1 device offline.
Send group command, two devices receive the command instead of four.

2023-04-30 14:02:34  INFO: [T6a84813b] id: 8809002312, command type: custom sent
2023-04-30 14:02:34  INFO: [T6758c06c] id: 8809002412, command type: custom sent
2023-04-30 14:02:34  INFO: [T6a84813b: watch > 188.206.78.59] 5b53472a383830393030323331322a303030622a75706c6f61642c333630305d
2023-04-30 14:02:34  INFO: [T6758c06c: watch > 31.161.148.252] 5b53472a383830393030323431322a303030622a75706c6f61642c333630305d

No errors in the log.

2nd try with one group device offline.
Send group command, two devices receive the command instead of four.

2023-04-30 14:09:41  INFO: [T6758c06c] id: 8809002412, command type: custom sent
2023-04-30 14:09:41  INFO: [T5f119427] id: 8809002413, command type: custom sent
2023-04-30 14:09:41  INFO: [T6758c06c: watch > 31.161.148.252] 5b53472a383830393030323431322a303030622a75706c6f61642c333630305d
2023-04-30 14:09:41  INFO: [T5f119427: watch > 31.161.140.152] 5b53472a383830393030323431332a303030622a75706c6f61642c333630305d

No errors in the log.

3rd try with one group device offline.
Send group command, NO devices receive the command instead of four.
Nothing in log

4th try with one group device offline.
Send group command, two devices receive the command instead of four.

2023-04-30 14:20:29  INFO: [T6758c06c] id: 8809002412, command type: custom sent
2023-04-30 14:20:29  INFO: [T6a84813b] id: 8809002312, command type: custom sent
2023-04-30 14:20:29  INFO: [T6758c06c: watch > 31.161.148.252] 5b53472a383830393030323431322a303030342a333630305d
2023-04-30 14:20:29  INFO: [T6a84813b: watch > 188.206.78.59] 5b53472a383830393030323331322a303030342a333630305d

5th try with one group device offline.
Send group command, NO devices receive the command instead of four.
Nothing in log

6th try with one group device offline.

2023-04-30 14:27:52  INFO: [T6758c06c] id: 8809002412, command type: custom sent
2023-04-30 14:27:52  INFO: [T6758c06c: watch > 31.161.148.252] 5b53472a383830393030323431322a303030622a75706c6f61642c333630305d
2023-04-30 14:27:54  INFO: [T6758c06c: watch < 31.161.148.252] 5b33472a383830393030323431322a303030362a75706c6f61645d

Send group command, ONE devices receive the command instead of four.
No errors in the log.

Finally, Turn on the group Device that was offline.

All devices receive the command.

2023-04-30 14:30:17  INFO: [T5f119427] id: 8809002413, command type: custom sent
2023-04-30 14:30:17  INFO: [Tff9feb2e] id: 8809002352, command type: custom sent
2023-04-30 14:30:17  INFO: [T6758c06c] id: 8809002412, command type: custom sent
2023-04-30 14:30:17  INFO: [Tff9feb2e: watch > 83.232.59.59] 5b53472a383830393030323335322a303030622a75706c6f61642c333630305d
2023-04-30 14:30:17  INFO: [T6a84813b] id: 8809002312, command type: custom sent
2023-04-30 14:30:17  INFO: [T5ca47175] id: 8809002309, command type: custom sent
2023-04-30 14:30:17  INFO: [T6a84813b: watch > 188.206.78.59] 5b53472a383830393030323331322a303030622a75706c6f61642c333630305d
2023-04-30 14:30:17  INFO: [T5ca47175: watch > 89.200.46.219] 5b53472a383830393030323330392a303030622a75706c6f61642c333630305d
2023-04-30 14:30:17  INFO: [T6758c06c: watch > 31.161.148.252] 5b53472a383830393030323431322a303030622a75706c6f61642c333630305d
2023-04-30 14:30:17  INFO: [T5f119427: watch > 31.161.140.152] 5b53472a383830393030323431332a303030622a75706c6f61642c333630305d
2023-04-30 14:30:19  INFO: [T5f119427: watch < 31.161.140.152] 5b33472a383830393030323431332a303030362a75706c6f61645d
2023-04-30 14:30:19  INFO: [T6a84813b: watch < 188.206.78.59] 5b33472a383830393030323331322a303030362a75706c6f61645d
2023-04-30 14:30:19  INFO: [Tff9feb2e: watch < 83.232.59.59] 5b33472a383830393030323335322a303030362a75706c6f61645d
2023-04-30 14:30:19  INFO: [T6758c06c: watch < 31.161.148.252] 5b33472a383830393030323431322a303030362a75706c6f61645d
2023-04-30 14:30:20  INFO: [T5ca47175: watch < 89.200.46.219] 5b33472a383830393030323330392a303030362a75706c6f61645d
Anton Tananaeva year ago

And what's the API response for any of the cases where not all devices are online?