function parseExternalId(externalId) {
  const [prefix, deviceId, type, channelString] = externalId.split(':');
  const channel = parseInt(channelString || '0', 10);
  return { prefix, deviceId, type, channel };
}
@description Parse the external ID of the Gladys device.
@param {string} externalId - External ID of the Gladys device.
@returns {object} Return the prefix, the device ID, the channel count and the type.
@example
parseExternalId('eWeLink:100069d0d4:power:4');